bug-cvs
[Top][All Lists]
Advanced

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

Re: cvs tag (mis)behavior


From: Derek Robert Price
Subject: Re: cvs tag (mis)behavior
Date: Tue, 11 Feb 2003 16:43:30 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0

Mark D. Baushke wrote:

Derek Robert Price <address@hidden> writes:

Is there any good reason why 'cvs tag' will ignore files not currently
in the sandbox when -r is supplied?  It's supposed to operate locally,
but 'cvs update' is too and will find files that don't currently exist
in the sandbox when passed a tag via -r.

If nobody can argue successfully why this should be otherwise, I'm
going to alter the behavior of tag -r to match up -r.

Derek

Just so I am sure I understand...

If I have a module that checks out only some files for a given directory
and then I use

        cvs tag -rBASE foo

this will cause a different set of files to be tagged than using

        cvs tag foo

Granted that -rBASE may be a bit special... it would just be well to be
able to clearly document why someone is not able to tag just the files
they are looking at in the current tree even if it is based on a
datestamp or older branch or version tag of those files.

Assuming a complete checkout, with -rBASE specified, the same set of files would be tagged, with the possible irrelevant exception of any files where a dead revision got tagged, but I'm not sure a dead revision would be tagged anyhow.

The case I am worried about is 'cvs tag -r release_1-0 -b maint_branch'. Why should that command behave differently in a sandbox checked out from project than 'cvs rtag -r release_1-0 -b maint_branch project', when a 'cvs up -r release_1-0' would generate the initial set of files rtag tagged as the base of the branch and the set of files tagged by the first (tag) command could be missing some files:

   cvs co -l .
   mkdir project
   cvs add project
   cd project
   touch file1 file2
   cvs add file1 file2
   cvs ci -maddem
   cvs tag release_1-0
   cvs rm -f file2
   cvs ci -mbyebye
   cvs tag -rrelease_1-0 -b release_1-0_maint


will only tag file1. Please name even a single case where that is useful. Note that replacing the last tag command above with 'cvs up -rrelease_1-0' would pull down file1 and file2.

Derek

--
               *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
--
Barium: what you do with dead chemists.






reply via email to

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