use util.localpath() instead of 'str.replace()' to unify path conversion stable
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Sun, 05 Feb 2012 22:58:31 +0900
branchstable
changeset 16068 73aaff46175b
parent 16067 467a85ced564
child 16069 f680ed10e2c4
use util.localpath() instead of 'str.replace()' to unify path conversion
mercurial/scmutil.py
--- a/mercurial/scmutil.py	Sun Feb 05 22:58:31 2012 +0900
+++ b/mercurial/scmutil.py	Sun Feb 05 22:58:31 2012 +0900
@@ -468,7 +468,7 @@
                                _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)