hg parents --template {latesttag}+{latesttagdistance}私はバージョンファイルを取得するために使用します。取得しnull+78ます。
これhg parentsが私を惹きつけるものです:
changeset: 79:74a86aec9582
tag: 0.8.010
tag: tip
user: XYZ
date: Mon Sep 10 14:48:03 2012 +0200
summary: jQuery, jQuery UI, and jqGrid updates completed as basis
なぜ私は取得しないの 0.8.010 tag+1ですか?

ここlatesttagで説明するように、アプローチは標準です。