summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2010-05-09 19:55:28 -0700
committerSam Lantinga <slouken@libsdl.org>2010-05-09 19:55:28 -0700
commitbdfc4ceca81da9acb93920271336932637ad0422 (patch)
tree884a84cacadf7a373ce82f3736e17935d9e49a55
parent99cb7856d4db5a5eb80154061398e51bdad9e1a4 (diff)
downloadsdl-bdfc4ceca81da9acb93920271336932637ad0422.tar.gz
Add a default revision string if we can't find hg
-rwxr-xr-xbuild-scripts/showrev.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/build-scripts/showrev.sh b/build-scripts/showrev.sh
index 4607d6422..54996869a 100755
--- a/build-scripts/showrev.sh
+++ b/build-scripts/showrev.sh
@@ -4,5 +4,4 @@
# 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}'
-
+hg tip --template 'hg-{rev}:{node|short}' || echo "hg-0:baadf00d"