How to set the CVSROOT environment variable in WinCVS?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The simple answer is: You don’t need to. The
CVSROOTenvironment variable is terribly overrated. CVS(NT) will only use it if all other methods of determining the repository connection string have been exhausted. People often assume that it is the other way round and then wonder that changes they’ve made to the CVSROOT environment variable are not effective.The order in which CVS evaluates possible sources for the repository connection string:
The
-doption on the commandline. This is what WinCvs allows you to set via the CVSROOT option on the following dialogs:login,init,import,checkoutandrtag. Also note that WinCvs remembers the CVSROOTs you’ve used in the past: If you revisit one of these dialogs you can simply pick the previous CVSROOTs from the dropdown.The contents of any ./CVS/Root files if present (they have the hidden attribute set by default in case you don’t see them). This means that as soon as you are running a command inside a working copy there is no need to specify the CVSROOT via any other means. WinCvs also displays this in the status bar if available.
Finally, as a last resort, the
CVSROOTenvironment variable. This is useful when you’re actually working on the commandline, executing commands outside a checked out sandbox but inside WinCvs there really is no point… either you already are inside a sandbox or you can simply pick the CVSROOT from the dropdown where it is needed.If you need to change the connection settings of an existing working copy you need to modify the contents of the ./CVS/Root files. WinCvs comes with a macro that will simplify this for you. Just select the root folder of the working copy you want to change the CVSROOT for and go to Macros|CVS|Change CVSROOT…
Also see this FAQ item on the whole issue: http://cvsgui.sf.net/newfaq.htm#CvsrootWizard