tags and multiple heads

Matt Mackall mpm at selenic.com
Thu Jun 12 13:03:08 CDT 2008


On Thu, 2008-06-12 at 17:10 +0200, Henryk Gerlach wrote:
> Hi,
> 
> I don't understand how tags are handled in multiple heads. The wiki
> (http://www.selenic.com/mercurial/wiki/index.cgi/Tag) says:
> 
> The tags that are in effect at any given time are the tags specified
> in each head, with heads closer to the tip taking precedence. Local
> tags override all other tags.

That's still approximately true, it's just not quite the full story.

> But this behavoir has changed by:
> http://hg.xavamedia.nl/mercurial/crew/rev/e29f2db5ab18
> due to http://www.selenic.com/mercurial/bts/issue498 
> the implemented Algorithm seems to be discribed here
> http://www.selenic.com/mercurial/bts/file248/hgtagfix-gwk-take4.patch-annotated.
> 
> Can someone confrim this so I can document it in the wiki?

Yes.

> Plus it looks like it is not handeling the nullid-cancling(*) of tags appropriately, which IMHO causes
> http://www.selenic.com/mercurial/bts/issue1102 (**)

My eyes glazed over after about the first page of that bug report.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list