1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:34:42 -07:00

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
This commit is contained in:
Alex Brainman 2012-03-06 17:21:39 +11:00
parent f35fa85a3f
commit 36708a40e0

View 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++) {