$Id: cvs.txt 1125 2007-07-06 11:55:19Z mjs $
HOW TO SET PASSWORD
$ cvs -d :pserver:mjs@cvs.beebo.org:/home/mjs/CVS login
HOW TO CHECK OUT
$ cvs -d :pserver:mjs@cvs.beebo.org:/home/mjs/CVS co .config
This creates a .config directory in the current directory. To checkout into another directory (e.g. "config") do:
$ cvs -d :pserver:mjs@cvs.beebo.org:/home/mjs/CVS co -d config .config
(Can set the CVSROOT environment variable instead of supplying it on the command-line via -d.)
HOW TO IMPORT (CREATE)
$ cd ~/src $ ls foo/ bar/ $ cvs import artemisonline DOWCARTER INITIAL
DOWCARTER and INITIAL are strings; their values doesn't matter. This creates a directory $CVSROOT/artemisonline containing directories foo and bar.
Where the environment variable CVSROOT is:
$ export CVSROOT=":pserver:mstillwel@penguin.london.dowcarter.com:/cvs"
HOW TO EXPORT (FILES WITHOUT CVS DIRECTORIES)
$ cvs export -r HEAD artemisonline
HOW TO REMOVE A DIRECTORY
$ cvs remove -fR foo $ cvs commit
(You possibly need to "cvs update -P" after this, to get it to remove empty directories. This will also remove all other "empty" directories!)
REVERT/READ A PREVIOUS VERSION
# prints to stdout $ cvs update -r $VERSION -p filename.ext
(Without the -p, overwrites current file.)
LIST VERSIONS
$ cvs log filename.ext
REMOVE STICKY TAGS
(If you somehow accidentally set a "sticky" tag (huh?) on a file:)
$ mv filename.txt ~/BACKUP $ cvs update -A filename.txt $ mv ~/BACKUP filename.txt $ cvs commit filename.txt
ENABLE KEYWORD EXPANSION
$ cvs admin -kkv filename
This makes the change in the repository but not local files. To get keyword expansion to "work" you need to check out the project again. (Seriously! Deleting the file an updating doesn't work either.)
LIST ALL PROJECTS IN CVS REPOSITORY
If you have version 1.12 or greater, you may be able to use "cvs ls". Otherwise, the easiest way seems to be to list the directory in the repository root. ("cvs history" seems promising, but doesn't quite work.)