Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > R

rcsdiff(1)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

rcsdiff — compare RCS revisions

SYNOPSIS

rcsdiff [-bcefhn] [-r rev1] [-r rev2] file ...

DESCRIPTION

rcsdiff compares two revisions of each given RCS file and creates output very similar to diff (see diff(1)). A file name ending in ,v is an RCS file name, otherwise it is a working file name. rcsdiff derives the working file name from the RCS file name and vice versa, as explained in rcsintro(5). Pairs consisting of both an RCS and a working file name can also be specified.

Options

rcsdiff recognizes the following options:

-b

Same as described in diff(1);

-e

Same as described in diff(1);

-f

Same as described in diff(1);

-h

Same as described in diff(1);

-n

Generate an edit script of the format used by RCS.

-c[n]

Generate a diff with lines of context. The default is to present 3 lines of context. To change, specify n; for example, -c10 gives 10 lines of context.

-c modifies the output format slightly from the normal diff(1) output. The "context" output begins with identification of the files involved and their creation dates, then each change is separated by a line with a dozen * (asterisks). Lines removed from file1 are marked with - (dashes); those added to file2 with + (pluses). Lines that are changed from one file to the other are marked in both files with ! (exclamation marks).

If both rev1 and rev2 are omitted, rcsdiff compares the latest revision on the trunk with the contents of the corresponding working file. This is useful for determining what was changed since the last check-in.

If rev1 is given, but rev2 is omitted, rcsdiff compares revision rev1 of the RCS file with the contents of the corresponding working file.

If both rev1 and rev2 are given, rcsdiff compares revisions rev1 and rev2 of the RCS file.

Both rev1 and rev2 can be given numerically or symbolically.

EXAMPLES

Compare the latest trunk revision of RCS file f.c,v and the contents of working file f.c:

rcsdiff f.c

Compare the revisions 1.1 and 1.2 in the RCS file foo.c,v:

rcsdiff -r1.1 -r1.2 foo.c

AUTHOR

rcsdiff was developed by Walter F. Tichy.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.