Search: 
 
View
  By section
  As outline
  Fully expanded

FAQ sections
  cvs

Questions
  Getting account
  Getting started
  cvs-remote-links
  CVS Clients
  cvs-local-resources
  common-commands
  common-tasks
  CVS and Eclipse
  admin-commands
  EDITOR-variable
  no password
  cvs-laptop
  change-password
  cvs-authoring
  Administrator/mkpasswd
  CVS account name
  Cygwin home dir
  Cygwin CR/NL problems
  Who gets one?
  anonymous access
  SCCS/RCS/CVS conversion
  Failed to connect . . .
  cvs update is slow
  cvs mail
  Cygwin copy & paste
  CVS Web Interface
  SVN vs CVS
  CVS on the Mac
 
Software Development
FAQ
CVS
Previous section  |  This section  |  Next section
Previous question  |  This question  |  Next question

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.

Checking out a tree for a particular date

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.

 
Previous section  |  This section  |  Next section
Previous question  |  This question  |  Next question
You are not logged in
©1998-2008 GSRC