mirror of
https://github.com/golang/go
synced 2024-11-22 07:04:40 -07:00
codereview: recognize code URL without trailing slash
R=adg CC=golang-dev https://golang.org/cl/4385042
This commit is contained in:
parent
48ae1f2d9b
commit
5b0ef4ac1f
@ -1463,7 +1463,7 @@ def submit(ui, repo, *pats, **opts):
|
|||||||
# we're committed. upload final patch, close review, add commit message
|
# we're committed. upload final patch, close review, add commit message
|
||||||
changeURL = short(node)
|
changeURL = short(node)
|
||||||
url = other.url()
|
url = other.url()
|
||||||
m = re.match("^https?://([^@/]+@)?([^.]+)\.googlecode\.com/hg/", url)
|
m = re.match("^https?://([^@/]+@)?([^.]+)\.googlecode\.com/hg/?", url)
|
||||||
if m:
|
if m:
|
||||||
changeURL = "http://code.google.com/p/%s/source/detail?r=%s" % (m.group(2), changeURL)
|
changeURL = "http://code.google.com/p/%s/source/detail?r=%s" % (m.group(2), changeURL)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user