mirror of https://github.com/golang/go.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
This commit is contained in:
parent
f35fa85a3f
commit
36708a40e0
|
|
@ -209,7 +209,7 @@ findgoversion(void)
|
||||||
// What are the tags along the current branch?
|
// What are the tags along the current branch?
|
||||||
tag = "";
|
tag = "";
|
||||||
rev = ".";
|
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));
|
splitfields(&tags, bstr(&b));
|
||||||
nrev = 0;
|
nrev = 0;
|
||||||
for(i=0; i<tags.len; i++) {
|
for(i=0; i<tags.len; i++) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue