| Index: git_cl.py
|
| diff --git a/git_cl.py b/git_cl.py
|
| index 7199f260d6a43e5e69862d610f9ea40549c28194..1726fd4ad22ace1825cde8febcf261c029b5ab0c 100755
|
| --- a/git_cl.py
|
| +++ b/git_cl.py
|
| @@ -1866,6 +1866,14 @@ class _RietveldChangelistImpl(_ChangelistCodereviewBase):
|
| def ParseIssueURL(parsed_url):
|
| if not parsed_url.scheme or not parsed_url.scheme.startswith('http'):
|
| return None
|
| + # Rietveld patch: https://domain/<number>/#ps<patchset>
|
| + match = re.match(r'/(\d+)/$', parsed_url.path)
|
| + match2 = re.match(r'ps(\d+)$', parsed_url.fragment)
|
| + if match and match2:
|
| + return _RietveldParsedIssueNumberArgument(
|
| + issue=int(match.group(1)),
|
| + patchset=int(match2.group(1)),
|
| + hostname=parsed_url.netloc)
|
| # Typical url: https://domain/<issue_number>[/[other]]
|
| match = re.match('/(\d+)(/.*)?$', parsed_url.path)
|
| if match:
|
|
|