use util.localpath() instead of 'str.replace()' to unify path conversion

This commit is contained in:
FUJIWARA Katsunori 2012-02-05 22:58:31 +09:00
parent 9c1a460e7a
commit d93ccafb52

View File

@ -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)