Why are tags in commits

Jensen, Aaron ajensen at webmd.net
Wed Feb 27 20:11:18 UTC 2013


> It doesn't solve it. If you throw away the second head's .hgtag with this, you WILL lose the 
> tags. 

If you are merging heads *within a branch*, yes, you should merge .hgtags, otherwise you could lose one head's tags.  

But I don't think it's necessary when *merging between branches*. According to the [Tag wiki page](http://mercurial.selenic.com/wiki/Tag) (and Mercurial 2.3.1 behavior):

    > The tags that are in effect at any given time are the tags specified in each head.

So, why merge .hgtags between branches?  It simplifies user workflows, especially when you've got automated builds that tag revisions as part of a build/test/release pipeline.

     <:> Aaron





More information about the Mercurial mailing list