Does TeamCity define a variable (like %build.vcs.number%) that is the hg revision number? It doesnt appear to be on the list.
I have tried adding my own environment variable under 'Build Parameters'
Value: hg id -n
and am referencing it however TeamCity interprets it literally and outputs 'hg id -n' instead of running that command and putting the result into that variable.
Eg, when I use %env.hg_revision_number% the value output is 'hg id -n' instead of '27' or whatever the revision number is.
How can I acheive this?