CVS
To import into CVS
cvs import [-m msg] <repository> <vendor-tag> <release-tags>
$ cd dir/where/stuff/to/import
$ cvs import -m "initial import" apps/blosxom/datadir "scalene" initial
To update a checked out module (incl. directories)
$ cvs update -d
Example of triggering an action upon commits
Add an entry to
CVSROOT/loginfo, so that whenever a commit is logged
cat >> CVSROOT/updatelog) , a
cvs update is performed in another directory:
# when something is checked into blosxom/datadir, log & update website
^apps/blosxom/datadir (date; cat; (sleep 2; cd /usr/local/www/fog.scalene.net/apps/blosxom/datadir; cvs -q update -d) &) >> $CVSROOT/CVSROOT/updatelog 2>&1
Configuring a new CVS server
For a smallish CVS server, add a role account
cvs, a group
cvs, and a home directory
/home/cvsroot. Make the home group writable and sticky. Initialize the CVS repository:
sudo -u cvs cvs -d /home/cvsroot init
To Revert and Remove Edits
If you want to revert to an older version and remove the edits you have made then
cvs admin -o is the way to go:
% cvs admin -o1.3: test
This will delete versions 1.3 and up, and thus reverting to 1.2.