|
Common CVS Tasks Christopher Brooks, 27 Aug 1999
Checking out just one directory
The old symbolic links method we used with SCCS probably won't work
as well. Your best bet is to just check out the entire tree
To check out just one directory outside of your tree, you can use
the directory name with cvs checkout
cvs checkout ptII/ptolemy/plot
will create the directory ptII/ptolemy/plot
in the current directory.
.cvsrc file
Brian Evans suggested that if your ~/.cvsrc file contains
the following:
cvs -z3
update -d -P
Then you will get the following features automatically:
-
cvs -z3
- compression when doing a
cvs checkout. This
can be especially useful when you are dialed in from home
-
update -d -P
- When you do
cvs update, create and prune directories
as necessary.
The alternative is to use the command line arguments each time you
run the appropriate commands.
cvs -d :ext:gigasource.eecs.berkeley.edu:/home/cvs co ptII
cd ptII
cvs update -d -P
cvs update -D 7/14/2000 -d -P
setenv PTII `pwd`
make
If you are under bash, then instead of setenv PTII `pwd`, do
PTII=`pwd`
export PTII
Notes:
After doing the cvs co with the -d :ext:gigasource.eecs.berkeley.edu:/home/cvs
flag, you need not specify the -d flag again. That value is cached
in the CVS subdirectory in each directory
In 'cvs update -d -P', the -d flag means something different than
the -d :ext:gigasource.eecs.berkeley.edu:/home/cvs flag
Here, -d means create directories
-P means prune empty directories. |