mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
use util.localpath() instead of 'str.replace()' to unify path conversion
This commit is contained in:
parent
9c1a460e7a
commit
d93ccafb52
@ -468,7 +468,7 @@ else:
|
||||
_HKEY_LOCAL_MACHINE)
|
||||
if not isinstance(value, str) or not value:
|
||||
return rcpath
|
||||
value = value.replace('/', os.sep)
|
||||
value = util.localpath(value)
|
||||
for p in value.split(os.pathsep):
|
||||
if p.lower().endswith('mercurial.ini'):
|
||||
rcpath.append(p)
|
||||
|
Loading…
Reference in New Issue
Block a user