changeset 4481:1b5b98837bb5

ui: Rename has_config to has_section.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun, 27 May 2007 13:50:59 -0700
parents 6b84c8d2f66f
children 62019c4427e3
files hgext/acl.py mercurial/ui.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/acl.py
+++ b/hgext/acl.py
@@ -55,7 +55,7 @@ class checker(object):
 
     def buildmatch(self, key):
         '''return tuple of (match function, list enabled).'''
-        if not self.ui.has_config(key):
+        if not self.ui.has_section(key):
             self.ui.debug(_('acl: %s not enabled\n') % key)
             return None, False
 
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -270,7 +270,7 @@ class ui(object):
             result = result.replace(",", " ").split()
         return result
 
-    def has_config(self, section, untrusted=False):
+    def has_section(self, section, untrusted=False):
         '''tell whether section exists in config.'''
         cdata = self._get_cdata(untrusted)
         return cdata.has_section(section)