From: Alex Brainman Date: Tue, 6 Mar 2012 06:21:39 +0000 (+1100) Subject: cmd/dist: use correct hg tag for go version X-Git-Tag: weekly.2012-03-13~191 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=36708a40e0511d7654f30615e9ca4452a4d90cc4;p=gostls13.git cmd/dist: use correct hg tag for go version When looking for suitable tag always start from current version, not the tip. R=minux.ma, rsc CC=golang-dev https://golang.org/cl/5731059 --- diff --git a/src/cmd/dist/build.c b/src/cmd/dist/build.c index 27741e4b0f..acd7347aa8 100644 --- a/src/cmd/dist/build.c +++ b/src/cmd/dist/build.c @@ -209,7 +209,7 @@ findgoversion(void) // What are the tags along the current branch? tag = ""; rev = "."; - run(&b, goroot, CheckExit, "hg", "log", "-b", bstr(&branch), "--template", "{tags} + ", nil); + run(&b, goroot, CheckExit, "hg", "log", "-b", bstr(&branch), "-r", ".:0", "--template", "{tags} + ", nil); splitfields(&tags, bstr(&b)); nrev = 0; for(i=0; i