Great option:
hg log -r . --template '{latesttag}-{latesttagdistance}-{node|short}'
What if you tag for releases, you get something like:
1.0-10-0746c606103c
which reads as "ten revisions from 1.0 with hash 0746c606103c."
I admit that I have no idea how to get this value in CruiseControl.NET, but if you can force it to call this command, you will have good value.
source share