views:

339

answers:

2

Hi,

Is there a way to check out from CVS using windows command line (cmd) given the branch, package and destination dir?

thanks :)

Oded

A: 

CVS is a monolithic executable, which doesn't have an API as such. So to execute a CVS command, you use std::system( "cvs command params" ) or similar, just as you would have done from the command line.

anon
I know that I should use the system(char*) command. Just was looking for the right string command.
Oded
You might want to rephrase your question then, removing references to C++ and VS, which have nothing to do with the issue.
anon
Rephrased. thanks.
Oded
+1  A: 
cvs -q -d <CVSROOT> co -r <BRANCH> -d <DESTINATION> <PACKAGE>
Juozas Kontvainis
thank you! it works.
Oded