summaryrefslogtreecommitdiff
path: root/build-scripts/showrev.sh
blob: 2a68fe694ee5ea5f9b01aff1aca47a0d20823892 (plain)
1
2
3
4
5
6
7
#!/bin/sh
#
# 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)