distance to tag

Kastner Masilko, Friedrich kastner-masilko at at.festo.com
Thu Feb 27 11:18:48 UTC 2014


> From: mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com] On Behalf Of Johannes Totz
> 
> 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.

May I ask why you need the distance? Is it perhaps some kind of dot-version generation from revision ancestry?

Regards,
Fritz



Development Software Systems
Festo Gesellschaft m.b.H.
Linzer Strasse 227
Austria - 1140 Wien

Firmenbuch Wien
FN 38435y
UID: ATU14650108

Tel: +43(1)91075-198
Fax: 
www.festo.at

Der Inhalt dieser E-Mail und moeglicher Anhaenge sind ausschliesslich fuer den bezeichneten Adressaten bestimmt.
Jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail und
moeglicher Anhaenge durch unberechtigte Dritte ist unzulaessig. Wir bitten Sie, sich mit dem Absender der E-Mail in
Verbindung zu setzen, falls Sie nicht der Adressat dieser E-Mail sind sowie das Material von Ihrem Computer zu loeschen.

This e-mail and any attachments are confidential and intended solely for the addressee. The perusal, publication, copying or
dissemination of the contents of this e-mail by unauthorised third parties is prohibited. If you are not the intended recipient of this
e-mail, please delete it and immediately notify the sender.




More information about the Mercurial mailing list