[ On Wednesday, February 16, 2000 at 12:43:31 (-0500), Noel L Yap wrote: ]
> Subject: Re: removing the need for "cvs add file" to contact the server....
>
> "cvs add dir" *must* operate on the local directory in so far as to create CVS
> admin subdirectories within those local directories.  It should bear no
> difference whether or not these local directories have files within their
> hierarchies.

Only in the case where getcwd() is an as yet unknown-directory and the
command-line argument is another sub-directory.

Note though that these three commands are supposed to be exactly
identical in CVS:

        cvs wdcmd sub-dir
        cd sub-dir && cvs wdcmd "."
        cd sub-dir && cvs wdcmd

(where "wdcmd" is any CVS sub-command that operates in a CVS managed
workspace, including "update", "status", "log", "diff", "commit", "rm",
and so on)

[[Unfortunately there have been bugs in the past, and maybe some still,
that make "cvs wdcmd" behave differently than "cvs wdcmd ."]]

> So then directory hierarchies containing zero files are also part of the working
> directory.

Yes in so far as they are within the working directory.  "cvs update -P"
will delete them though if they are indeed truly empty, and of course
since '-P' is supposed to be the default, and is forced to be the
default when using branches, one must assume this will happen
regardless.  If you don't want CVS to delete an empty directory then
make sure it's not empty!  ;-)

>  They also shouldn't be ignored by "cvs add".

They won't be purely ignored -- but nothing can happen unless there are
un-ignored files within to be operated on.

> I take it that you also mean that directories mentioned in the ignore list will
> mean to recursively ignore everything within that directory?

Yes, except for the more complex case where there are already locally or
centrally known files in that sub-directory, just as with a file which
isn't ignored if it's already managed.  This should already be the case
with all workspace sub-commands and if it isn't I'd consider it a bug.
With "cvs add" the effect w.r.t. the ignore list will be the same with a
directory as it would be with a file, i.e. the ignore list will be
over-ridden by explicitly specifying the file or directory name on the
command-line.

-- 
                                                        Greg A. Woods

+1 416 218-0098      VE3TCP      <[EMAIL PROTECTED]>      <robohack!woods>
Planix, Inc. <[EMAIL PROTECTED]>; Secrets of the Weird <[EMAIL PROTECTED]>

Reply via email to