Print Current Mercurial Revision Hash?

Solution 1:

Try:

hg id -i

Example:

$ hg id -i
adc56745e928

Solution 2:

hg --debug id -i

This will output the long hash, with a plus if there are uncommitted changes.