[cvsnt] Re: "Floating" Tags?

Glen Starrett grstarrett at cox.net
Sat Jan 8 08:01:45 GMT 2005


Nitzan Shaked wrote:
> Again, if I got the description correctly, the desired behavior would be to
> have the same revision whether I get it by tag or not, and that revision
> would be the latest (on a given branch) for a file. The tag is there to
> differentiate between files, not between revisions of the same file.
> 
> An interesting question indeed -- anyone?

Would this do it?  Have a script that runs postcommit or just before you 
do the export (depending on which is more convenient):

First, anchor it with a tag on any revision (one time only, doesn't 
matter which revision it's on):

   cvs tag MyTagMarker file1 file2 ...

Then, update that tag to HEAD, assuming the files are checked out at 
HEAD already:

   cvs tag -r MyTagMarker -F MyTag


I had a thought that it might be even simpler with:
   cvs tag -r MyTag -F MyTag
... but nothing happens.


-- 
Glen Starrett



More information about the cvsnt mailing list