info-cvs
[Top][All Lists]
Advanced

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

Re: Using moving tags


From: Doug Lee
Subject: Re: Using moving tags
Date: Thu, 30 Sep 2004 20:24:20 -0400
User-agent: Mutt/1.5.6i

On Thu, Sep 30, 2004 at 11:49:33PM +0000, Pierre Asselin wrote:
> Yamuna Ramasubramaniyan <address@hidden> wrote:
> > I have a question about using moving tags.  You tag
> > the repository with LAST_GOOD today.  Someone removes
> > a file.  This file still contains the LAST_GOOD tag. 
> > The next person checking out the module with the
> > LAST_GOOD tag will get this deleted file.  Do you use
> > a commitinfo trigger to remove the moving tag from the
> > deleted file?  Are there any other ways to handle this
> > case?
> 
> D'oh.  I hadn't thought of that.  Maybe the tag mover could look
> for files that are 1) dead on the trunk, 2) not added on a branch,
> 3) still have the tag;  and then remove the tag from those files.
> Not so easy to do from a sandbox from which the file has been

Er...now maybe I'm the one missing something.  I don't see the
problem:

Say the LastGood tag was applied on Monday.  Tuesday someone removes
a file and commits that, but LastGood is not moved yet.  Shortly
thereafter, someone checks out via the LastGood tag and, as observed
in this thread, gets the removed file.  In my view, that is valid
behavior; the "good" version contained that file, so out it comes with
all the rest.  It should not cease to appear with the LastGood tag
until that tag is moved further up, past the removal, when the updates
since the last tagging are considered "safe."

If I understand correctly, removing the file from the trunk will put
it in the Attic, so it won't come out when a HEAD checkout is done.  I
also believe that the LastGood tag is intended to move from its last
point to the HEAD periodically when the head is considered "safe."
Putting these two things together, I would figure the removed file,
though it will technically still contain the tag, will automatically
cease to appear in future versions of the system.

Now let's see if I'm about to have to take my turn at exclaiming
"D'oh." :-)

-- 
Doug Lee           address@hidden        http://www.dlee.org
Bartimaeus Group   address@hidden   http://www.bartsite.com
"Pray devoutly, but hammer stoutly."
--Sir William G. Benham




reply via email to

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