How do I use RCS (Revision Control System)rcs usage notes (Berkeley Lab UNIX machines)Getting Started with RCS (from rcsintro)Note well: You need to use module load rcs to use rcs.The man pages on commands like ci, co, etc., are of course useful. Here is a brief, practical introduction based in part on the rcsintro man page. Suppose you have a file myfile.html that you wish to put under control of RCS. If you have not already done so, make an RCS subdirectory of the current directory with the command mkdir RCS
Then invoke the check-in command:
Files in the RCS directory are called RCS files; the others are called working files. Updating files under RCSTo edit myfile.html, which you have already stored under RCS, you must
lock it as you check it out by
rcsdiff myfile.html
Check the file back in by invoking
Retrieving and reverting to an earlier version of the fileThis section was corrected and updated Mon Oct 1 18:07:02 PDT 2001Retrieve and then revert to an older version (for example 1.3) of a file by
Overwriting a mistakeIf youco -l file.html and edit it and realize you have made irremediable errors, just do co -l file.html to get back the version with which you started. Then edit it as needed or check it back it without any changes. Correcting an RCS commentUse 'rcs -mREV:msg FILENAME' to correct RCS comment REV in FILENAME.For example rcs -m1.448:'mg ; make jgipgf1 go to rhodeisland.jgi-psf.org' printcap.dp Historyrlog file.htmlshows the history of file.html Locking: showing locked files, conflictsGiven that your RCS files are in the directory RCS,
If myfile.html complains with the message "ci error: no lock set by your name",
do
© Copyright
2000 Lawrence Berkeley National Laboratory |
||||||||||||||||||||||||