RCS Getting Started

RCS is a file level source code control tool consisting of a few command line tools. It takes seconds to use so there is no reason not have basic source code control in place. The following few commands are a enough to get you going. Branching, tagging, etc are not covered here although they are supported by rcs.

Its a good ides to create a directory called RCS to avoid clutter in your current directory, but not essential.

Command Summary
ci -u file Check in a new or locked file and retain a read only copy in the current directory
co file Check out the latest version of a file
co -l file check out the latest version of a file locked for editing
rlog file View the history of a file
co -r1.1 file Check out version 1.1 of a file
rlog -R -L RCS/*,v Show locked files that are under rcs (No help if you are looking for new files to check in)
rlog -R -L RCS/* Show locked files which are in the current directory (Error indicates files not under rcs)
rcsdiff file Show the differences between the latest rcs version and file
rcsdiff -r1.1 -r1.2 file Show the differences between version 1.1 and 1.2 of file
rcs -u file Unlock file. (Probably want to 'co file' after unlocking to correct permissions).

See Also: rcs cvs



Roger
Roger Hall
COMPUSPEC
Google
 
Web Compuspec.net
Valid XHTML 1.0!
Valid CSS!