[cvsnt] cvs checkout/add ignoring $CVSROOT environment variable?

Nick Duane nickdu at msn.com
Tue Aug 15 14:31:39 BST 2006


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


I've been using the cvsnt command line client (2.5.03) to play around with 
cvs while I become familiar with the product.  Wanting to skip typing the -d 
global option I set the environment variable $CVSROOT to my cvsroot 
(:sspi:redbonemobile:/pom).  I have two repositories; /pom and /pom2.  I 
then create a temporary directory and from it run:

cvs checkout -A ./

This gets the CVSROOT info so that I can then add directories to the 
repository (maybe there is a better way, but this is what I came up with so 
far).  I then create a directory called Eom in my temporary directory and 
run:

cvs add Eom

The output shows:

C:\data\temp\cvsinit>cvs add Eom
Directory /pom2/Eom added to the repository

Why is it using the /pom2 repository as opposed to /pom?  Using the CVSNT 
control panel I do see that /pom2 does have the 'default repository' value 
set.  You can't seem to not have a default repository, which I would think 
would be useful.  When I execute the same statements above but also include 
the -d global option everything works as expected.

Here is my environment variable:

C:\data\temp\cvsinit>set $CVSROOT
$CVSROOT=:sspi:redbonemobile:/pom

The docs show all the environment variables with the preceeding $, not sure 
if that's just indicating they are environment variables or the variable is 
actually supposed to have the prepended $.  In any case I tried it both with 
and without the $ and the behavior was the same.

Thanks,
Nick 




More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook