aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2011-08-15 21:19:07 +1000
committerAndrew Gerrand <adg@golang.org>2011-08-15 21:19:07 +1000
commit241a262fe592911b8be3d44694429103e4ff86e4 (patch)
tree4695dd4c6d4273d473e92c642085d34755190507
parent175849295ce632c2ddeca7024f7c783327b5e571 (diff)
downloadgo-241a262fe592911b8be3d44694429103e4ff86e4.tar.gz
go-241a262fe592911b8be3d44694429103e4ff86e4.zip
build: don't require hg for build
R=golang-dev, dsymonds, n13m3y3r CC=golang-dev https://golang.org/cl/4873048
-rwxr-xr-xsrc/version.bash5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/version.bash b/src/version.bash
index ce5a9969a2..e3677a7368 100755
--- a/src/version.bash
+++ b/src/version.bash
@@ -5,8 +5,9 @@
# Check that we can use 'hg'
if ! hg version > /dev/null 2>&1; then
- echo 'hg not installed' 1>&2
- exit 2
+ echo 'unable to report version: hg not installed' 1>&2
+ echo 'unknown'
+ exit 0
fi
# Get numerical revision