changeset 16068:73aaff46175b stable

use util.localpath() instead of 'str.replace()' to unify path conversion
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Sun, 05 Feb 2012 22:58:31 +0900
parents 467a85ced564
children f680ed10e2c4
files mercurial/scmutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)