Mercurial > hg
diff hgext/convert/subversion.py @ 9523:d932dc655881
Merge with -stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 03 Oct 2009 14:39:57 -0500 |
parents | 67df9f46f907 e3ce0c30798b |
children | a981ddb16b80 |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Sat Oct 03 14:39:46 2009 -0500 +++ b/hgext/convert/subversion.py Sat Oct 03 14:39:57 2009 -0500 @@ -153,11 +153,13 @@ def issvnurl(url): try: proto, path = url.split('://', 1) - path = urllib.url2pathname(path) + if proto == 'file': + path = urllib.url2pathname(path) except ValueError: proto = 'file' path = os.path.abspath(url) - path = path.replace(os.sep, '/') + if proto == 'file': + path = path.replace(os.sep, '/') check = protomap.get(proto, lambda p, p2: False) while '/' in path: if check(path, proto):