Chromium Code Reviews| Index: gclient_utils.py |
| diff --git a/gclient_utils.py b/gclient_utils.py |
| index c394862f76645aaef15b9352f68a3585be422998..31af055a6290d4a9869d552e2f2d696db92f8140 100644 |
| --- a/gclient_utils.py |
| +++ b/gclient_utils.py |
| @@ -75,7 +75,10 @@ def SplitUrlRevision(url): |
| regex = r'(ssh://(?:[-.\w]+@)?[-\w:\.]+/[-~\w\./]+)(?:@(.+))?' |
| components = re.search(regex, url).groups() |
| else: |
| - components = url.split('@', 1) |
| + components = url.rsplit('@', 1) |
| + if re.match(r'^\w+\@', url): |
| + components = ['@'.join(components[:2])] + components[1].split('@', 1) |
|
bradn
2014/04/11 01:49:41
Not sure that works.
Isn't more like (ie if its a
Sheridan Rawlins
2014/04/11 04:15:16
I should have started by tweaking the unit tests.
|
| + |
| if len(components) == 1: |
| components += [None] |
| return tuple(components) |