[PATCH 4 of 5] windows: eliminate system_rcpath_win32()

Adrian Buehlmann adrian at cadifra.com
Tue Feb 8 16:52:30 UTC 2011


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1297121869 -3600
# Node ID 3d0bd72fd513357112625864201aed405c058580
# Parent  c31cde22e2918d7acb6bb8b04ae0818b8ce50a43
windows: eliminate system_rcpath_win32()

diff --git a/mercurial/windows.py b/mercurial/windows.py
--- a/mercurial/windows.py
+++ b/mercurial/windows.py
@@ -75,7 +75,7 @@ def openhardlinks():
 
 _HKEY_LOCAL_MACHINE = 0x80000002L
 
-def system_rcpath_win32():
+def system_rcpath():
     '''return default os-specific hgrc search path'''
     rcpath = []
     filename = executable_path()
@@ -107,12 +107,6 @@ def system_rcpath_win32():
                     rcpath.append(os.path.join(p, f))
     return rcpath
 
-def system_rcpath():
-    try:
-        return system_rcpath_win32()
-    except:
-        return [r'c:\mercurial\mercurial.ini']
-
 def user_rcpath():
     '''return os-specific hgrc search path to the user dir'''
     try:



More information about the Mercurial-devel mailing list