circle.ch weblog / wiki

A weblog about open source development, law, technology, politics and the like.

CVS Server for Windows
CVS Howto
CVS Client for Windows
WinCVS? and SSH
First steps with CVSnt:
  • Created some folders
    • c:\cvs, c:\cvs\cvsrepo, c:\cvs\cvstemp
    • c:\www\test
  • Install CVSnt with the typical setting
  • Goto System folder and select the CVSnt configuration tool
    • make sure the cvs service is stopped
    • add c:\www\test, the folder with your working project, as a repository
    • configure "c:\cvs\cvstemp" as Temporary Directory in "Advanced"
    • start the cvs service
  • open a cmd shell
  • cd into c:\www\test and execute the following:
    • SET CVSROOT=c:\cvs\cvsrepo
    • cvs co CVSROOT
    • cd CVSROOT
    • cvs commit
  • If cvs.exe does not exist or produces error messages, check if you have the cvs.exe installed. I installed cvs via cygwin to get around that problem.
  • If you get something like "cvs [commit aborted]: C:/CVS/cvsrepo/CVSROOT: No such file or directory" then go into c:\cvs\cvsrepo and create the folder "CVSROOT"
First steps with TortoiseCVS
  • Install TortoiseCVS and restart the System
  • Goto c:\www and select the folder "test"
  • Right-click the mouse an select "checkin"
  • Goto c:\www\test and create a file test.php, right-click the mouse on the selected file test.php and check it in.
  • Get the diff.exe via cygwin
  • Get a merge executable via http://winmerge.sourceforge.net
That should work... if not - as below - have a look at the solution provided (using unix-like path):
C:\www\test>SET CVSROOT=c:\cvs\cvsrepo
C:\www\test>cvs co CVSROOT
cvs checkout: CVSROOT must be an absolute pathname (not `c:\cvs\cvsrepo')
cvs checkout: when using local access method.
cvs [checkout aborted]: Bad CVSROOT: `c:\cvs\cvsrepo'.

C:\www\test>cd  ..

C:\www>pwd
/cygdrive/c/www

C:\www>SET CVSROOT=/cygdrive/c/cvs/cvsrepo

C:\www>cd test

C:\www\test>cvs co CVSROOT
cvs checkout: Updating CVSROOT
? CVSROOT/Emptydir
? CVSROOT/checkoutlist
? CVSROOT/checkoutlist,v
? CVSROOT/commitinfo
? CVSROOT/commitinfo,v
? CVSROOT/config
? CVSROOT/config,v
? CVSROOT/cvsrc
? CVSROOT/cvsrc,v
? CVSROOT/cvswrappers
? CVSROOT/cvswrappers,v
? CVSROOT/editinfo
? CVSROOT/editinfo,v
? CVSROOT/history
? CVSROOT/historyinfo
? CVSROOT/historyinfo,v
? CVSROOT/loginfo
? CVSROOT/loginfo,v
? CVSROOT/modules
? CVSROOT/modules,v
? CVSROOT/modules2
? CVSROOT/modules2,v
? CVSROOT/notify
? CVSROOT/notify,v
? CVSROOT/postcommit
? CVSROOT/postcommit,v
? CVSROOT/rcsinfo
? CVSROOT/rcsinfo,v
? CVSROOT/taginfo
? CVSROOT/taginfo,v
? CVSROOT/val-tags
? CVSROOT/verifymsg
? CVSROOT/verifymsg,v

C:\www\test>echo %CVSROOT%
/cygdrive/c/cvs/cvsrepo
Webview of a CVS repository
CVS statistics
[Mayrenne]
[research paper topics]