[Top][All Lists]

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

RE: The recursive behavior of CVS

From: Reinstein, Shlomo
Subject: RE: The recursive behavior of CVS
Date: Wed, 19 Feb 2003 23:37:45 +0200

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
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?
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.


> -----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:
> >
> 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

reply via email to

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