|Version Management with CVS - the CVS manual|
by Per Cederqvist et al.
Paperback (6"x9"), 216 pages, 8 figures
RRP £19.95 ($29.95)
2.1 Telling CVS where your repository is
There are several ways to tell CVS
where to find the repository. You can name the
repository on the command line explicitly, with the
-d (for "directory") option:
$ cvs -d /usr/local/cvsroot checkout yoyodyne/tc
Or you can set the
variable to an absolute path to the root of the
repository, ‘/usr/local/cvsroot’ in this example.
users should have this line in their ‘.cshrc’ or
setenv CVSROOT /usr/local/cvsroot
bash users should instead have these lines in their
‘.profile’ or ‘.bashrc’:
CVSROOT=/usr/local/cvsroot export CVSROOT
A repository specified with
$CVSROOT environment variable.
Once you've checked a working copy out from the
repository, it will remember where its repository is
(the information is recorded in the
‘CVS/Root’ file in the working copy).
-d option and the ‘CVS/Root’ file both
$CVSROOT environment variable. If
-d option differs from ‘CVS/Root’, the
former is used. Of course, for proper operation they
should be two ways of referring to the same repository.
|ISBN 0954161718||Version Management with CVS - the CVS manual||See the print edition|