[Top][All Lists]

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

Re: cvs add <directory>

From: Greg A. Woods
Subject: Re: cvs add <directory>
Date: Fri, 23 May 2003 17:59:23 -0400 (EDT)

[ On Friday, May 23, 2003 at 22:19:48 (+0100), Max Bowsher wrote: ]
> Subject: Re: cvs add <directory>
> CVS's handling of directories would be elegant *if* we could use "co -P" and
> "update -dP" *all the time*.
> Unfortunately, trying to do so prevents the use of certain complex modules
> arrangements: specifically when a module name expands to some files in a
> toplevel directory, and certain subdirectories within that toplevel.
> With -d, the intent of the module is destroyed - *every* subdirectory within
> the toplevel is fetched on update. (Example: the src repository at

I would suggest to you that you're using the wrong tool(s), or using
them in the wrong way, if you've created this problem for yourself.  :-)

> This problem could probably be mostly solved by making CVS fetch new
> directories by default (even without -d) *unless* CVS/Entries.Static
> exists - i.e., make the "should I create new objects" criteria identical for
> files and directories. I can't imagine this being a problem for anyone -
> unless there is a valid reason for *not* wanting directories added to the
> repository to be created on the client? Can anyone think of one?

That's an interesting idea, though I'm not certain it's the right

You should try to use your build system to select and combine modules
instead of trying to do too many fancy things with the various modules
options which were never really very well thought out or implemented.

You should never have the option of ignoring certain sub-directories in
a given module's top-level directory.  Top level module directories
should be "atomic" and should contain a single cohesive collection of
source files.  It should not be possible to, by default, extract only a
portion of the files in a module's top-level directory.

                                                                Greg A. Woods

+1 416 218-0098;            <address@hidden>;           <address@hidden>
Planix, Inc. <address@hidden>; VE3TCP; Secrets of the Weird <address@hidden>

reply via email to

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