distance to tag
Mads Kiilerich
mads at kiilerich.com
Thu Feb 27 14:42:34 UTC 2014
On 02/27/2014 03:05 PM, Benjamin Pollack wrote:
> Unless I’m badly misunderstanding, I think you just want:
>
> hg parent --template '{latesttag}+{latesttagdistance}-{node|short}\n’
>
> You can obviously tweak the exact output format; the above is borrowed from Hg itself, if I recall correctly, but is also what Kiln uses.
I think there are valid use cases where you want to control which tag it
should use. It would for instance not work for us. Just picking the
"latest" tag is not very useful if you have tags for different purposes
and perhaps on different branches.
/Mads
More information about the Mercurial
mailing list