mercurial/scmutil.py
changeset 13985 26335a817dd0
parent 13984 af60153b5e3b
child 13986 9c374cf76b7d
--- a/mercurial/scmutil.py	Thu Apr 21 20:14:29 2011 +0200
+++ b/mercurial/scmutil.py	Thu Apr 21 20:54:45 2011 +0200
@@ -296,6 +296,13 @@
                         newdirs.append(d)
             dirs[:] = newdirs
 
+def os_rcpath():
+    '''return default os-specific hgrc search path'''
+    path = util.system_rcpath()
+    path.extend(util.user_rcpath())
+    path = [os.path.normpath(f) for f in path]
+    return path
+
 _rcpath = None
 
 def rcpath():
@@ -319,5 +326,5 @@
                 else:
                     _rcpath.append(p)
         else:
-            _rcpath = util.os_rcpath()
+            _rcpath = os_rcpath()
     return _rcpath