diff options
author | Russ Cox <rsc@golang.org> | 2011-04-06 23:07:08 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-04-06 23:07:08 -0400 |
commit | 809c5accb5b866ea6bfc602326390c34bb3ce737 (patch) | |
tree | ff9ee882edf1742bb7015919803805993aa61922 /lib/codereview | |
parent | cf1bd7eee4f0e15aef8fb3d12afa63035a52fb6d (diff) | |
download | go-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.py | 2 |
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: |