
I then decided to go back to WinCVS, http://wincvs.org, which I had been using for a long time before eclipse came. During the installation, I noted that it was installing also CVSNT, a server for CVS under Windows. My problems with trying to setup a CVS server under windows were probably due to the fact that I was trying to use the one with cygwin which required an involved procedure (which never worked for me).
Well, CVSNT seemed to have solved all my problems! First of all you need to configure your repositories. Note that you can give the repository a symbolic name. This is pretty cool since it allows me to use the same path as in Linux
Then I checked the option "Pretend to be a Unix server", since the help says that programs like eclipse require this.
At this point, everything already worked fine, and I could access my local repositories from eclipse using pserver protocol, and using the user/password of Windows.
However, for C++ programs using autotools, I kept on having problems since the autotools scripts failed due to the \r\n DOS lines that seemed to be introduced during checkout.
Fortunately, this is easily solvable by configuring eclipse, by disabling "Convert text files using platform line ending" as shown in the following screenshot:
After a brand new checkout, everything worked like magic! :-)
I don't know anything about installing a local server on Windows, but I think you should consider switching to Subversion: it's far superior than CVS (IIRC you can't even rename a file in CVS!) and fully supported by Eclipse.
ReplyDeleteSurely svn is much powerful than CVS, but I still prefer CVS for local repositories for just one programmer (just to store all the versions of documents, for instance), since it does not require a web server, and it is quite easy to backup it with rsync :-)
ReplyDelete