|
Using RCS: an ancient Unix tool |
A Brief Introduction to RCS
ci newfile.ext
This will convert the file to an RCS file with an initial
version number. It will also ask for you to enter a
short description of the file; this description may be
terminated by a line with a '.' in the first position.
rcs -acjcs newfile.ext
rcs -aschauble newfile.ext
Now the persons with the login names cjcs and schauble
have been added as permitted users to the RCS file called
newfile,v. It is often wise to add your own login as
well.
co -l filename.ext
The -l puts a lock on it, meaning that no one else can modify
it while you are working with it. This also allows you to
check it back in when you are finished:
ci filename.ext
The ci instruction will ask for a line explaining the
changes made; you can make it blank if you wish. It can
also recognize if no changes have been made. Please be
sure to check it back in before you log out -- for no one
else can use it till you do. Check it back in even if
there were no changes! RCS has a tendency to mess up
otherwise.
ci *
as this will attempt to check in every file in the directory
-- even those which are not RCS files, such as a
Makefile or a README file,
unless of course, there is some reason to do so.
co filename.ext
However if you make any changes to the file, the system will not
let you check it back in.
(See man rcsintro for an escape to this problem.)