info-cvs
[Top][All Lists]
Advanced

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

Re: The recursive behavior of CVS


From: Donald Sharp
Subject: Re: The recursive behavior of CVS
Date: Wed, 19 Feb 2003 16:59:13 -0500
User-agent: Mutt/1.4i

On Wed, Feb 19, 2003 at 11:37:45PM +0200, Reinstein, Shlomo wrote:
> Another related question:
> In my computer, there is no CVSROOT environment variable. There is no
> meaning to set it, since we use several repositories and we have a Perl
> wrapper around CVS that knows which repository each module should be taken
> from.
> If I run a CVS command from a non-working directory (i.e., a directory with
> no CVS subdirectory), CVS tells me "No CVSROOT specified!  Please use the
> `-d' option or set the CVSROOT environment variable.". If I define the
> CVSROOT environment variable, the CVS command then works and recurses into
> the subdirectories which appear to be working directories.
> 
> I have two questions about this:
> 1. Why is there a need to define the CVSROOT? The directory in which I am
> running the CVS command is not a working directory anyway, and CVS will
> recurse into subdirectories and use the CVS/Root specified in them, right?

cvs looks at the cwd and sees that theres nothing to clue it into the
fact that cvs was used here, so it quits.  I don't think it's reasonable
to expect it to arbitrarily start poking in sub directories.

> 2. As I understand it, it does not matter which value I set the CVSROOT to,
> as long as it's a valid CVSROOT value. Is that right? I can set it to any
> repository that I like, and the command will work the same way.

Urmmm... dunno never tried it..

donald

> 
> Shlomo
> 
> > -----Original Message-----
> > From: address@hidden [mailto:address@hidden
> > Sent: Wednesday, February 19, 2003 6:16 PM
> > To: Reinstein, Shlomo
> > Cc: address@hidden
> > Subject: Re: The recursive behavior of CVS
> > 
> > 
> > Reinstein, Shlomo writes:
> > > 
> > > About 2 years ago I asked about the recursive behavior of 
> > CVS. I asked how
> > > CVS decides whether it should recurse into a subdirectory 
> > or not, and I got
> > > the following reply from Larry Jones: "In general, if there's no CVS
> > > subdirectory in a directory or if there are no D lines in 
> > CVS/Entries, CVS
> > > will recurse into all of the existing subdirectories. If 
> > there are D lines
> > > in CVS/Entries, CVS will recurse into only those subdirectories."
> > > You can find the question and the reply at:
> > > http://www.mail-archive.com/address@hidden/msg07004.html
> > 
> > That reply was not quite accurate.  I should have said, "will recurse
> > into all of the existing subdirectories *that appear to be working
> > directories*".  If a subdirectory doesn't contain a CVS subdirectory,
> > CVS will not recurse into it.
> > 
> > > Is this behavior limited to a single CVS repository? That 
> > is, if I have a
> > > directory tree that contains working directories from 
> > several repositories,
> > > and also non-working directories, is this algorithm still the same?
> > 
> > Yes, the algorithm is the same, and the subdirectories can 
> > come from any
> > number of different repositories.
> > 
> > -Larry Jones
> > 
> > Fortunately, that was our plan from the start. -- Calvin
> > 
> 
> 
> _______________________________________________
> Info-cvs mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/info-cvs




reply via email to

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