]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: use correct hg tag for go version
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 6 Mar 2012 06:21:39 +0000 (17:21 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 6 Mar 2012 06:21:39 +0000 (17:21 +1100)
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

index 27741e4b0f0d3a13454f59ccc3a55dfdaa0e3d5b..acd7347aa89753f743c79173e20d080a4585e56d 100644 (file)
@@ -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<tags.len; i++) {