mirror of https://github.com/golang/go.git
codereview: look for new release branches
R=adg CC=golang-dev https://golang.org/cl/6127048
This commit is contained in:
parent
b6522c43d5
commit
d2e70054c9
|
|
@ -2610,15 +2610,14 @@ def RietveldSetup(ui, repo):
|
||||||
|
|
||||||
global releaseBranch
|
global releaseBranch
|
||||||
tags = repo.branchtags().keys()
|
tags = repo.branchtags().keys()
|
||||||
if 'release-branch.r100' in tags:
|
if 'release-branch.go10' in tags:
|
||||||
# NOTE(rsc): This tags.sort is going to get the wrong
|
# NOTE(rsc): This tags.sort is going to get the wrong
|
||||||
# answer when comparing release-branch.r99 with
|
# answer when comparing release-branch.go9 with
|
||||||
# release-branch.r100. If we do ten releases a year
|
# release-branch.go10. It will be a while before we care.
|
||||||
# that gives us 4 years before we have to worry about this.
|
raise hg_util.Abort('tags.sort needs to be fixed for release-branch.go10')
|
||||||
raise hg_util.Abort('tags.sort needs to be fixed for release-branch.r100')
|
|
||||||
tags.sort()
|
tags.sort()
|
||||||
for t in tags:
|
for t in tags:
|
||||||
if t.startswith('release-branch.'):
|
if t.startswith('release-branch.go'):
|
||||||
releaseBranch = t
|
releaseBranch = t
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue