[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removing tags from removed versions
From: |
Mark E. Hamilton |
Subject: |
Re: Removing tags from removed versions |
Date: |
Tue, 25 Oct 2005 11:50:45 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 |
Stephan,
Frank Henry wrote:
HI.
I have a problem with tags on version that were deleted from the
repository.
Versions get additional tags for specific situations. (f.i.
good_version, bad_version)
But when someone forgets to remove the tag and removes the files from
the repository a wierd feature happens:
When trying to update based on a specific tag it will update all
versions with that tag.
Even the removed ones!
Naturally those regulating the versions should watch out, yet we know
our users, don't we? ;)
If the file existed in the repository when the tag was created, and was
removed after that, then what you are seeing seems like the correct
behavior (to me, anyway.) The state of your repository at tag 'X'
included those files; at tag 'X+n' they didn't. In general, you should
never remove tags (unless they were incorrectly applied) since they're
supposed to reflect the state of your repository at the time they are
applied.
It's also unwise to re-use tags in the way you've described. One
presumes, for instance, that you would over the lifetime of your project
have many 'good_version' states; how would you get last week's
'good_version' if you needed it?
However, if you really want to reuse the tags then Spiro's suggestion
should remove the tag from the specified file. To get all files in the
repository you would use:
cvs rtag -d <tagname> .
or to get all files in a specific top-level module you would use:
cvs rtag -d <tagname> <modulename>
--
----------------
Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.
505-844-7666