From: Russ Cox Date: Thu, 7 Apr 2011 03:07:08 +0000 (-0400) Subject: codereview: recognize code URL without trailing slash X-Git-Tag: weekly.2011-04-13~80 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5b0ef4ac1fc91999cc2fa9e7379fa444a9b3598f;p=gostls13.git codereview: recognize code URL without trailing slash R=adg CC=golang-dev https://golang.org/cl/4385042 --- diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 3a70a1091a..efb1a61773 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: