I am trying to do \"continuous integration\" with TeamCity. I would like to label my builds in a incremental way and the GUID provided by the VCS is not as usefull as a simple i
hg id produces the hash (6ec760554f2b), hg id -n produces the local revision number (12).
hg id
6ec760554f2b
hg id -n
12
(Note this is an answer purely from the hg side, how you then get that into TeamCity, I don't know, as I've never used it.)