info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: CVS/Root overrides people's CVSROOT environment variables?


From: Beachey, Kendric
Subject: RE: CVS/Root overrides people's CVSROOT environment variables?
Date: Tue, 21 Aug 2001 13:27:54 -0500

For anyone who would like to know, the best answer I got to this question was to use a .cvsrc file in one's home directory.  A line such as
 
cvs -d :my:cvsroot:statement
 
in that file would cause that -d argument to be used anytime you issued a cvs command.  I was also pointed to the Cederqvist which contains a section on .cvsrc and that was helpful.
-----Original Message-----
From: Eugene Kramer [mailto:address@hidden
Sent: Tuesday, August 21, 2001 7:11 AM
To: 'Beachey, Kendric'; Ïnfo-Cvs mailing list (E-mail)
Subject: RE: CVS/Root overrides people's CVSROOT environment variables?

You, probably, want to have a separate account, which (automatically) updates live web site from the repository. In this case you will log in as this account once and check out a sandbox. You can set up a mail handler on this account, which can execute commands coming in a email ("get the latest", "get tag FooStable of module Customer1", and so on). Or you can have a simple implementation, which updates the site from the repo's tip every hour (I do not think you want that though).
 
By not allowing folks to go manually to a live directory and do cvs commands you will also avoid situations when developers edit live files without checking in the changes into CVS.
 
Also, take a look at a nice site about web development and CVS: http://www.durak.org/cvswebsites/
 
Eugene.
-----Original Message-----
From: Beachey, Kendric [mailto:address@hidden
Sent: Monday, August 20, 2001 9:16 AM
To: Ïnfo-Cvs mailing list (E-mail)
Subject: CVS/Root overrides people's CVSROOT environment variables?

We've run into a problem in the case of having multiple people using the same working copy--I know it sounds dumb, but here's the deal.  On our development webserver, I went and checked out a working copy of our site from CVS, to serve as the fodder for the webserver to serve up.  Doing this created many CVS/Root files that have my username embedded in the :pserver: line.

Now when someone else wants to work on the development box, and they try to do a cvs command, cvs looks at the line in CVS/Root before it looks at the person's own CVSROOT environment variable.  Thus, it always thinks the other person is me.  Is there a way to get this "search order" reversed?  The workaround is for people to use the -d parameter to cvs, which is annoying (although one guy just used an alias to get around it).

This box has CVS 1.10.8 installed.

--
Kendric Beachey
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]