At 09:38 PM 2/20/00, you wrote:
>[ On Friday, February 18, 2000 at 16:52:48 (-0500), Noel L Yap wrote: ]
> > Subject: Re: removing the need for "cvs add file" to contact the server....
> >
> > What I'm getting at is that "cvs add dir" should create CVS admin
> subdirectories
> > whether or not the hierarchy is empty. "cvs add dir" shouldn't
> differentiate
> > between empty (including those that contain only ignored files) and
> non-empty
> > hierarchies. You still haven't shown how it can be dangerous to do
> so. After
> > all, this is only occurring within the local directories right?
>
>It's obviously not dangerous to always create the administrative files
>in every directory "cvs add" recurses into. However there are some
>potentially major (and long-term!) optimisations to be gained by only
>creating them when necessary. Since it is not necessary to create
>administrative files in a directory when no other files are added there
>they should not be created.
I am fairly new to CVS and I have only been reading (actually skimming)
this and other threads with a sort of detached amusement. But this seems
to hit home for me. I wonder if I am approaching my use of CVS in an
"optimal" way after reading the statement above.
I have a working directory hierarchy that has many subdirectories and in
several of these I have make files. One of the make targets I use is
called `test'. This target creates some more subdirectories. I do this so
that my test procedures can be run with local libraries (perl) instead of
system libraries. This assures that I am actually using any changes that I
make to libraries that happen to be installed on the local system in my
tests.
As I develop new function, I use cvs add to add directories or more often
new modules. I don't want to, nor do I need to, add my test library
directories to CVS since the original source is already there. If cvs add
were to blindly assume I wanted my test directories under its control, I
would be disappointed. I would consider that behavior "dangerous".
Do I understand the proposal correctly? Should I be doing something to
make sure that CVS ignores my test directories.
Not so smugly detached any longer :-),
Garry Williams