CVS verification: checking the project in a directory other than the one you are currently in?

I am currently issuing the following command: cvs -d / path / cvsroot checkout -P directory / powers_npg /

However, this checks the entire directory structure that is above the directory to the location I was in when I issue this command.

I am trying to check this tree, but I want it to check a different directory than my PWD.

I would like something like this command:

cvs -d / wv / path / cvsroot checkout -P directory / powers_npg // home / me / Desktop /

So, everything that would be checked at my current location will be checked on / home / me / Desktop / instead.

I am doing this right now, having a script that just moves the tree when I finished checking, but I guess there is a better way to do this.

+3
source share
1 answer

I think you need the -d option for cvs checkout, something like

cvs checkout -d place-you-want-it module

From the CVS man page for “validation options”:

-d dir

Create a directory called dir for the working files, instead of using the module name. In general, using this flag is equivalent to using mkdir; cd dir followed by a statement without the -d flag.

Example:

$ cvs checkout -d /stuff/cvs/baz -P baz/another
cvs checkout: Updating /stuff/cvs/baz
U /stuff/cvs/baz/some
$ ls /stuff/cvs/baz
CVS/  some
$
+7
source

Source: https://habr.com/ru/post/1712897/


All Articles