mercurial/scmutil.py
branchstable
changeset 16068 73aaff46175b
parent 15993 0b05e0bfdc1c
child 16115 236bb604dc39
--- 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)