author Sam Lantinga <>
Fri, 31 Dec 2010 08:40:09 -0800
changeset 4935 a727eda441be
parent 4464 fa77a6429698
permissions -rwxr-xr-x
Return an error code if Mercurial isn't installed

# Print the current source revision, if available

# FIXME: this prints the tip, which isn't useful if you're on a different
#  branch, or just not sync'd to the tip.
hg tip --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)