$ edit test.txt
$ mkdir RCS
$ ci -l test.txt
The last command will
$ rlog test.txt
$ co -r1.3 test.txt
or
$ co -u1.3 test.txt
The latter will check out test.txt without lock. This will chmod test.txt to
$ co -l1.3 test.txt
This command will
After this command, if one run
$ rlog test.txt
he will see that there are two versions locked in RCS: 1.3 and the head, for example, 1.9
To write new changes after 1.9, one has to unlock 1.3 first:
$ rcs -u1.3 test.txt
To write new changes after 1.3 (i.e. create a new branch 1.3.1.1), one has to unlock 1.9 first:
$ rcs -u1.9 test.txt
To make sure each time new changes are write after the highest revision number, one has to at first turn off strict locking for test.txt:
$ rcs -U test.txt
After this command one can checkout test.txt without locking:
$ co -r1.3 test.txt
This time, this command will
If one run
$ ci -l test.txt
new version will be r1.10
Activities mentions in this site have been supported by the following grants: