1

When I do something like this:

cvs -z3 -d :pserver:anoncvs@sourceware.org:/cvs/src co gdb

... cvs creates a directory 'src' at the path where it is called from, and checks out all the files from cvs/src in there..

In svn, you can do something like (pseudocode)

svn co http://.../TheProject LocalProjectName

... in which case, svn creates a directory 'LocalProjectName' at the path where it is called from, and checks out all the files from .../TheProject in there..

Is there a similar option for cvs (so that the top-level local directory has a different name from that in the repository?)

Thanks in advance for any answers,
Cheers!

Jay P.
  • 4,745
  • 5
  • 44
  • 74
sdaau
  • 32,015
  • 34
  • 178
  • 244
  • 1
    possible duplicate of [CVS Checkout to a directory](http://stackoverflow.com/questions/89181/cvs-checkout-to-a-directory) – martin clayton Aug 06 '11 at 14:42
  • Thanks for the comment, @martin clayton - it's a different problem, but apparently, the solution is the same :) Cheers! – sdaau Aug 10 '11 at 15:52

1 Answers1

4
cvs co -d LocalProjectName TheProject

This will check out a repository named TheProject into a directory named LocalProjectName.

Jay P.
  • 4,745
  • 5
  • 44
  • 74