info-cvs
[Top][All Lists]
Advanced

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

What *should* happen in a cvs update from top level dir?


From: Laird Nelson
Subject: What *should* happen in a cvs update from top level dir?
Date: Tue, 17 Oct 2000 13:26:54 -0400

I'm using cvs 1.10 on Solaris 2.7, built from source.

If I have a projects directory and I check out two modules into it, and
if I have any CVSROOT environment variable set, and if there is no CVS
directory inside the projects directory, what should happen when I do a
cvs update from within projects?

Visually here's what *does* happen:

   % mkdir projects
   % cd projects
   % setenv CVSROOT :pserver:address@hidden:/cvsroot/wildblueyonder
   % cvs -d:pserver:address@hidden:/cvsroot/wildblueyonder co -P
somemodule
   % cvs -d:pserver:address@hidden:/cvsroot/somerepo co -P someothermodule
   % pwd
   /users/ljnelson/projects
   % ls CVS
   CVS: No such file or directory
   % cvs update
   protocol error: directory '/cvsroot/somerepo/someothermodule' not
within root '/cvsroot/wileblueyonder'
   % 

Note that without the CVSROOT environment variable set, cvs won't even
try to dig through the subdirectories at all.  And, as indicated above,
*with* the CVSROOT variable set, CVS is happy to dig through the first
level of subdirectories, but uses the environment variable instead of
the CVS/Root file in each module.

I have a colleague who is asking how he can effectively issue a cvs
update from the projects directory and have all of his checked out
projects (from various cvs roots) update themselves.

I was surprised to note that cvs update will dig around in the subdirs
one level under where it was invoked, but not any deeper, even if it's
invoked in a cvs-unaware location.

Any comments?

Cheers,
Laird

--
W: address@hidden / P: address@hidden
http://www.amherst.edu/~ljnelson/
Good, cheap, fast: pick two.



reply via email to

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