[PATCH 2 of 2] identify: add the --locate flag to display nearest surrounding tags

Dirkjan Ochtman dirkjan at ochtman.nl
Mon Aug 31 03:03:34 CDT 2009

On Mon, Aug 31, 2009 at 09:48, Gilles Moris<gilles.moris at free.fr> wrote:
> So I have added a locate option to identify:
> % hg identify --locate -r cset
> 0123456789abcdef
> based on 1.0.2(-96 stable1.x) 1.5(-223 exp)
> went in 2.0(+392 stable2.x) 2.1(+489)
> Which means cset 0123456789abcdef
> - has for latest tags 1.0.2 (96 rev ago on the stable1.x named branch) and 1.5
>  (223 rev ago of the exp named branch)
> - is embedded in version 2.0 (branch stable2.x) and on the default branch (489
>  rev further)

So I understand you really need/want this, but I'm fairly hesitant on
cluttering the code in cmdutil.changeset_templater even more. I've
been looking at a way out of that mess, and it doesn't look that easy.
Maybe you should package your patch in the form of an extension
wrapping the identify command. We definitely want the functionality,
but the code in that area is just in a bad shape right now, and I
worry about it getting worse before it gets better.



More information about the Mercurial-devel mailing list