[Top][All Lists]

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

Re: cvs does not support adding files locally (to allow a diff et c

From: Derek Robert Price
Subject: Re: cvs does not support adding files locally (to allow a diff et c
Date: Wed, 21 Jul 2004 18:05:39 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616

Ingolf Steinbach wrote:

>On Tuesday 20 July 2004 22:38, Larry Jones wrote:
>>There are lots of reasons: error checking (e.g., trying to add a file
>>that already exists or with the same name as an existing directory),
>>resurrecting files (which performs a checkout), etc.
>IMO, the only reason which counts (and yes, it does!) is
>resurrecting files, as there is no way to prevent the addition
>(and check-in) of a file/dir with the same name by another
>user between my own cvs add and cvs commit of the file.

I actually agree with Ingolf, mostly.  At least, if there is a server
available, then it is nice to possibly give the user advance warning
about a problem that can be detected, but since it's possible that the
problem wouldn't be detected until commit time anyhow, it would be nice
if the client would at least timeout and allow the add regardless of
whether it found a server or not and it shouldn't really hurt if the
server is usually ignored entirely.

The exception, of course, is directories.  Directories are added to the
server at the time of the `add' and not the `commit', so either a server
would be needed for the add or a bunch more work would need to be done
to delay the addition (in a repository) of directories and their
contents until commit time.

I would be happy to review a patch which accomplished all or some subset
of the above.




Email: address@hidden

Get CVS support at <http://ximbiot.com>!

reply via email to

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