3

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

Zoe
  • 27,060
  • 21
  • 118
  • 148
Oded
  • 795
  • 2
  • 12
  • 32

2 Answers2

3
cvs -q -d <CVSROOT> co -r <BRANCH> -d <DESTINATION> <PACKAGE>
Juozas Kontvainis
  • 9,461
  • 6
  • 55
  • 66
0

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.

  • I know that I should use the system(char*) command. Just was looking for the right string command. – Oded Aug 17 '09 at 09:24
  • You might want to rephrase your question then, removing references to C++ and VS, which have nothing to do with the issue. –  Aug 17 '09 at 09:26