Fwd: Enriching a file log by branches, tags and bookmarks

Marc Strapetz marc.strapetz at syntevo.com
Fri Apr 3 13:55:51 UTC 2015


On 02.04.2015 21:08, Matt Mackall wrote:
> So if the file log shows revisions 1 and 10, but there's a 1.0 tag at 5,
> we want to show the tag on 1 to say "this was in 1.0". Right now {tags}
> will only tell you about tags on the current changeset and doesn't know
> which set of changesets are going to be displayed.
>
> So we don't in fact have a good way to do what's wanted here in a
> template at present.

I'm not necessarily looking for a template, it will also be fine if this 
could be done within a plugin. I couldn't find any high-level API which 
I could use to compose something useful here. Do you have any suggestions?

> However, I do find this useful:
>
> [alias]
> tagged = log -r 'first($1:: and tagged())'

AFAIU this gives me the most recent tag for a specific revision? I don't 
understand what happens here but could that be generalized to do what 
I'm looking for?

-Marc




More information about the Mercurial mailing list