# HG changeset patch # User Bryan O'Sullivan # Date 1180299059 25200 # Node ID 1b5b98837bb5893d94226d32be99d525aa9e0468 # Parent 6b84c8d2f66f4cddf6a5a55c2e1b6998f688a178 ui: Rename has_config to has_section. diff -r 6b84c8d2f66f -r 1b5b98837bb5 hgext/acl.py --- a/hgext/acl.py Sun May 27 13:41:35 2007 -0700 +++ b/hgext/acl.py Sun May 27 13:50:59 2007 -0700 @@ -55,7 +55,7 @@ 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 diff -r 6b84c8d2f66f -r 1b5b98837bb5 mercurial/ui.py --- a/mercurial/ui.py Sun May 27 13:41:35 2007 -0700 +++ b/mercurial/ui.py Sun May 27 13:50:59 2007 -0700 @@ -270,7 +270,7 @@ 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)