distance to tag
Johannes Totz
johannes at jo-t.de
Thu Feb 27 11:02:53 UTC 2014
Hi,
I just (re)discovered templates and revsets, nice stuff.
How do I get the number of revisions between a given revision X and
another given tag/revision Y (along the longest or shortest path)? I
know there's latesttagdistance but it's not quite what I'm after.
I guess something like...
hg log -r X:Y --template "{node|short}" | wc -l
...would work. But is there a built-in function? I'm mainly on windows,
no wc there.
Thanks!
Johannes
More information about the Mercurial
mailing list