summaryrefslogtreecommitdiff
path: root/lib/codereview
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-04-06 23:07:08 -0400
committerRuss Cox <rsc@golang.org>2011-04-06 23:07:08 -0400
commit809c5accb5b866ea6bfc602326390c34bb3ce737 (patch)
treeff9ee882edf1742bb7015919803805993aa61922 /lib/codereview
parentcf1bd7eee4f0e15aef8fb3d12afa63035a52fb6d (diff)
downloadgo-809c5accb5b866ea6bfc602326390c34bb3ce737.tar.gz
codereview: recognize code URL without trailing slash
R=adg CC=golang-dev http://codereview.appspot.com/4385042
Diffstat (limited to 'lib/codereview')
-rw-r--r--lib/codereview/codereview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py
index 3a70a1091..efb1a6177 100644
--- a/lib/codereview/codereview.py
+++ b/lib/codereview/codereview.py
@@ -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: