mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
convert/svn: fix pathname parsing from URL under Windows
This commit is contained in:
parent
a001fce5fc
commit
dfb2f86779
@ -159,6 +159,7 @@ def issvnurl(url):
|
||||
if not '://' in url:
|
||||
return False
|
||||
proto, path = url.split('://', 1)
|
||||
path = urllib.url2pathname(path).replace(os.sep, '/')
|
||||
check = protomap.get(proto, lambda p, p2: False)
|
||||
while '/' in path:
|
||||
if check(path, proto):
|
||||
|
Loading…
Reference in New Issue
Block a user