mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
convert: Accept local path on win32.
This commit is contained in:
parent
40a16e2ab7
commit
05e81b7348
@ -51,7 +51,10 @@ def geturl(path):
|
||||
except SubversionException:
|
||||
pass
|
||||
if os.path.isdir(path):
|
||||
return 'file://%s' % os.path.normpath(os.path.abspath(path))
|
||||
path = os.path.normpath(os.path.abspath(path))
|
||||
if os.name == 'nt':
|
||||
path = '/' + path.replace('\\', '/')
|
||||
return 'file://%s' % path
|
||||
return path
|
||||
|
||||
def optrev(number):
|
||||
|
Loading…
Reference in New Issue
Block a user