UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: rcscleanChapter 19
The Revision Control System
Next: Reference: rcsfreeze
 

rcsdiff

rcsdiff [options] [diff_options] files

Compare revisions via diff. Specify revisions using -r as follows:

# of RevisionsComparison Made
NoneWorking file against latest revision.
OneWorking file against specified revision.
TwoOne revision against the other.

rcsdiff accepts the standard options -q, -V, -Vn, -T, -x, and -z, as well as diff_options, which can be any valid diff option. rcsdiff exits with a status of 0 (no differences), 1 (some differences), or 2 (unknown problem). The -c option to diff can be very useful with rcsdiff.

rcsdiff prints "retrieving revision ..." messages to standard error, as well as a line of equals signs for separating multiple files. It is often useful to redirect standard error and standard output to the same file.

Options

-kc

When comparing revisions, expand keywords using style c. (See co for values of c.)

-rR1

Use revision R1 in the comparison.

-rR2

Use revision R2 in the comparison. (-rR1 must also be specified.)

Examples

Compare the current working file against the last checked-in version:

rcsdiff -c ch19.sgm 2>&1 | more

Compare the current working file against the very first version:

rcsdiff -c -r1.1 ch19.sgm 2>&1 | more

Compare two earlier versions of a file against each other:

rcsdiff -c -r1.3 -r1.4 ch19.sgm 2>&1 | more


Previous: Reference: rcscleanUNIX in a Nutshell: System V EditionNext: Reference: rcsfreeze
Reference: rcscleanBook IndexReference: rcsfreeze

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System