So if you really botch your working file, use
the -f option with co to get a fresh start.
RCS??™s command-line options are cumulative, as you might expect, and RCS does a good job of disallowing
incompatible options. To check out and lock a specific revision of howdy.c, you would
795
Programming Tools and Utilities 29
use a command such as co -l -r2.1 howdy.c. Similarly, ci -u -r3 howdy.c checks in
howdy.c, assigns it revision number 3.1, and deposits a read-only revision 3.1 working file back
into your current working directory.
The following example creates revision 2.1 of howdy.c. Make sure you have checked out and
changed howdy.c somehow before executing this command.
$ ci -r2 howdy.c
RCS/howdy.c,v <-- howdy.c
new revision: 2.1; previous revision: 1.2
enter log message, terminated with single '.' or end of file:
>> Added something
>> .
done
This command is equivalent to ci -r2.1 howdy.c.
The next example checks out revision 1.2 of howdy.c, disregarding the presence of highernumbered
revisions in the working directory.
$ co -r1.2 howdy.c
RCS/howdy.c,v --> howdy.c
revision 1.2
done
The handy command shown next discards all of the changes you??™ve made to version 1.2 (above)
and lets you start over with a known good source file.
$ co -l -f howdy.
Pages:
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439