From 36708a40e0511d7654f30615e9ca4452a4d90cc4 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Tue, 6 Mar 2012 17:21:39 +1100 Subject: [PATCH] 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 --- src/cmd/dist/build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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