From 0e863f9078dbfacabdc00a52e78282ddbbaf631c Mon Sep 17 00:00:00 2001 From: "craig.schlenter@chromium.org" Date: Thu, 15 Sep 2011 19:23:17 +0000 Subject: [PATCH] Allow a trailing slash in the rietveld url. Review URL: http://codereview.chromium.org/7894003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@101356 0039d316-1c4b-4281-b951-d872f2087c98 --- trychange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trychange.py b/trychange.py index d76af94cd..9825b1e8b 100755 --- a/trychange.py +++ b/trychange.py @@ -638,7 +638,7 @@ def TryChange(argv, # Try to extract the review number if possible and fix the protocol. if not '://' in options.rietveld_url: options.rietveld_url = 'http://' + options.rietveld_url - match = re.match(r'^(.*)/(\d+)$', options.rietveld_url) + match = re.match(r'^(.*)/(\d+)/?$', options.rietveld_url) if match: if options.issue or options.patchset: parser.error('Cannot use both --issue and use a review number url')