[PATCH 3 of 4 STABLE] use util.localpath() instead of 'str.replace()' to unify path conversion
FUJIWARA Katsunori
foozy at lares.dti.ne.jp
Sun Feb 5 14:39:43 UTC 2012
# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1328450311 -32400
# Branch stable
# Node ID 73aaff46175b17b03283369d92fd2f0aa88a2644
# Parent 467a85ced564bb4d6f84eec743841b53c720b517
use util.localpath() instead of 'str.replace()' to unify path conversion
diff -r 467a85ced564 -r 73aaff46175b 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)
More information about the Mercurial-devel
mailing list