From 0f46aaf8b3e43ea5add91c73aec5773f0d028b35 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 4 Apr 2011 10:06:09 +1000 Subject: [PATCH] version.bash: strip changeset hash from 'hg tags' output Fixes #1651. R=rsc CC=golang-dev https://golang.org/cl/4300054 --- src/version.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/src/version.bash b/src/version.bash index 7b2c06801a0..b45f15a6c4f 100755 --- a/src/version.bash +++ b/src/version.bash @@ -18,6 +18,7 @@ fi # Find most recent known release tag. TAG=$(hg tags | + sed 's/:.*//' | sort -rn -k2 | awk -v ver=$VERSION '$2 <= ver && $1~/^(release|weekly)\./ {print $1}' | sed -n 1p)