Tuesday, July 15, 2008

Win CVS help and FAQ's.

I searched on the net and collected some FAQ for CVS. Hope it will help others.
Why are there no help files?
I am working on it and trying to make a help file for CVS in the Spare time. following links may helps you where you realy found some help.
http://www.wincvs.org/winhtml/wincvs11.htm

Why can’t I configure Igloo like WinCVS?
Although Igloo uses the same dlls as WinCVS it behaves more like the command line version of CVS. I am concentrating on completing the functionality of Igloo rather than creating the configuration dialogs. Everything can be controlled via the CVS environment variables for now. Please read the CVS manuals for details. O’Reilly produce a great pocket reference for CVS I recommend everyone buy it.

How can I set any extra options to the CVS commands?
You can’t set any extra options to the CVS command just yet. I am working on this for the future. If you want to check out a repository with another revision use regular CVS or WinCVS. Alternatively you can work around this problem if you put the options *temporarily* in the .cvsrc file of your %HOME%-directory.
For example: to checkout/update another tag write a file %HOME%\.cvsrc like this:
checkout -r update -r

What does auto commit do?
Auto commit mode makes CVS work like a traditional source control system. When you add or delete files it automatically commits the changes to the repository. When you do a check out (not a CVS checkout but an IDE checkout) it updates the file first before doing a CVS edit on the file. This mode is one that many of you will feel most comfortable with. However, the repository can easily get in a state where you cannot build your tree because only half of it is checked in or you could pick up a change that you are not ready for.

What does regular CVS mode do?
This make Igloo work the way CVS was designed to do. It is useful if you are working for a long time on your own isolated changes. If you add or delete files they are removed from the workspace but not from the repository until you do a commit. When you do a check out (not a CVS checkout but an IDE checkout) it does not get the latest version of the file therefore you won’t get clobbered by a new file you are not ready for yet. The theory is that you do a fully commit when your changes are stable. Igloo does not provide an easy way to do a full commit of your project yet so use the CVS command line or WinCVS

What does work off-line do?
One of the greatest things about CVS is that you can run of with your laptop and continue working on all your code without being connected to the repository. Off-line mode avoids doing a ‘cvs edit’ when you do an IDE checkout. Instead it just make the file writeable. Doing an IDE checkin in off-line mode still attempts to do a ‘cvs commit’

I’ve got binary files. What do I do about them?
You need to explicitly tell CVS which files are binary. You do this by editing the cvswrappers file in the CVSROOT directory of your repository. Please ready the CVS documentation for how to do this. For Visual Studio you may want to set the .DSP and .DSW files to binary because they are text files that are not supposed to be edited by hand. If you are comfortable with these files being merged automatically and by hand when conflicts occur then it will usually be ok as a text file.

I use a different port for my pserver. How do I set the port?
Set the CVS_PSERVER_PORT variable. This is not a standard CVS environment variable.

The above information has been collected through internet.
Your comment needed.

No comments: