sdaau
sdaau

Reputation: 38681

How to checkout from CVS and specify the local directory name

When I do something like this:

cvs -z3 -d :pserver:[email protected]:/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!

Upvotes: 1

Views: 2884

Answers (1)

Jay Prall
Jay Prall

Reputation: 5465

cvs co -d LocalProjectName TheProject

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

Upvotes: 5

Related Questions