YoLinux: RCS Intro - Revision Control System for Linux/UNIX |
The RCS Revision Control System manages modifications to individual files. Files can be locked while checked out for change by a programmer to protect against poor coordination and comunications. Comparison with previous versions of the file and access to previous versions is also possible.
|
CM Tutorials: °CVS Other YoLinux Tutorials: °C++ Memory corruption and leaks
|
First step:Pick a working directory and add a link to the RCS repository. cd working_directory
mkdir RCS
ln -s /home/Project/src/RCS RCS
This links your working directory to the RCS repository.
Checkout:co -l file.cIn this case, the latest version of the file "file.c" will be placed in your current working directory and "locked" from use by other programmers. To checkout a particular (previous) version: co -r1.2 file.c Check out for reading not updating and locking:
History/Status:To view file info:rlog -b file.c
Quit / Clean-up:Cleanup, don't commit changes: rcsclean -u *.c
Check-in / Commit:When done editing the file, check-in (commit) your changes: ci file.c Diff:rcsdiff file.cThis will compare the version of the file in your working directory with that of the original you checked out.
rcsdiff -r1.2 file.cCompare current working version with version 1.2. The following will compare the two revisions of the file. rcsdiff -r 1.1 -r 1.2 file.c
Links:
|
|
Return to http://YoLinux.com for more Linux links, information and tutorials
Return to YoLinux Tutorial Index Feedback Form Copyright © 1999 by Greg Ippolito |