Commit 5b0ef4ac authored by Russ Cox's avatar Russ Cox

codereview: recognize code URL without trailing slash

R=adg
CC=golang-dev
https://golang.org/cl/4385042
parent 48ae1f2d
...@@ -1463,7 +1463,7 @@ def submit(ui, repo, *pats, **opts): ...@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment