1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:57:56 -07:00

codereview: recognize code URL without trailing slash

R=adg
CC=golang-dev
https://golang.org/cl/4385042
This commit is contained in:
Russ Cox 2011-04-06 23:07:08 -04:00
parent 48ae1f2d9b
commit 5b0ef4ac1f

View File

@ -1463,7 +1463,7 @@ def submit(ui, repo, *pats, **opts):
# we're committed. upload final patch, close review, add commit message
changeURL = short(node)
url = other.url()
m = re.match("^https?://([^@/]+@)?([^.]+)\.googlecode\.com/hg/", url)
m = re.match("^https?://([^@/]+@)?([^.]+)\.googlecode\.com/hg/?", url)
if m:
changeURL = "http://code.google.com/p/%s/source/detail?r=%s" % (m.group(2), changeURL)
else: