CVS Cheat Sheet

cvs status -v file -- shows all the tags assigned to file

cvs tag -c rel_1_0_3 -- adds the tag rel_1_0_3 to all files

cvs tag -c -l rel_1_0_3 -- adds the tag rel_1_0_3 to all files in local directory only

cvs tag -d rel_1_0_3 file -- removes the tag rel_1_0_3 from file

cvs -n -q update -dP -- check status of all files

cvs export -r rel_1_2 -d imap4bz-1.2 imap4bz -- create directory imap4bz-1.2 and add all files tagged with rel_1_2

cvs admin "-m1.5:New message" -- change the log message for revision 1.5

cvs admin -o1.5:: file -- roll back file to revision 1.5

cvs log file -- display the log messages for file

Create a new module

  1. mkdir /var/cvs/doh -- create a new module for the doh project

  2. cvs co doh -- checkout the module doh

  3. cd doh

  4. cp ~/file1.c .

  5. cvs add file1.c -- add file1.c

  6. cvs ci -m 'Added' file1.c -- commit file1.c

Check in a binary file

  1. cvs add file.png -- add the file file.png

  2. cvs admin -kb file.png -- set keyword substitution to binary for file.png

  3. cvs ci -m 'Added' file.png -- commit file.png

Add an entry to the CVSROOT/passwd file

  1. perl -c 'print crypt("3n9tvrgt", "xy"), "\n"' -- "3n9tvrgt" is the password, "xy" is the "salt"
  2. Add the entry login:xyEL.9ZPubo2A:cvs -- login is the login name, xyEL.9ZPubo2A is the password hash, and cvs is the username on the server.