mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +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:
|
except SubversionException:
|
||||||
pass
|
pass
|
||||||
if os.path.isdir(path):
|
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
|
return path
|
||||||
|
|
||||||
def optrev(number):
|
def optrev(number):
|
||||||
|
Loading…
Reference in New Issue
Block a user