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

Nick Duane nickdu at msn.com
Tue Aug 15 15:21:44 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.


But this is a clean repository so I don't have any modules.  I'm actually 
trying to create a root module (directory) in the repository.  It was/is not 
obvious to me the best way to go about doing this.  I can't call cvs add 
since I don't have a sandbox yet.  That's why I did:

cvs checkout ./

This created the CVSROOT directory in my current directory.  At this point I 
can now execute cvs add.  But as I said, it appears to be ignoring my 
environment variable.  David indicated that once you have a sandbox cvs 
ignores the environment variables which would lead me to believe that it's 
the checkout that is not doing what I'm expecting it to do.  I guess it's 
checking out ./ from /pom2 as opposed to /pom.

Thanks,
Nick

"Bo Berglund" <Bo.Berglund at system3r.se> wrote in message 
news:mailman.23.1155650517.3158.cvsnt at cvsnt.org...
In a command window:

set CVSROOT=:sspi:redbonemobile:/pom
cvs ls

This should show you the top level modules on repository /pom

next

set CVSROOT=:sspi:redbonemobile:/pom2
cvs ls

Now the modules listed are those from repo pom2

This has always worked for me and I use it a lot.

Notice that your syntax is wrong. Your environment variable is CVSROOT,
not $CVSROOT.

The $CVSROOT designator is used when you want to access the environment
variable from the script command line in for example CVSROOT/loginfo.

But here you are dealing with plain old Windows environment variables
and no $ is used.

Best regards,

Bo Berglund


-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org] On Behalf
Of Nick Duane
Sent: den 15 augusti 2006 15:32
To: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
Subject: [cvsnt] cvs checkout/add ignoring $CVSROOT environment
variable?

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


_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs 




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