mercurial/ui.py
changeset 27696 e70c97cc9243
parent 27563 56c2caffde3d
child 28039 89003c49315c
child 28125 3b4537ba80e9
--- a/mercurial/ui.py	Tue Jan 05 21:25:51 2016 -0800
+++ b/mercurial/ui.py	Thu Jan 07 19:45:03 2016 -0800
@@ -507,6 +507,9 @@
                 result = default or []
         return result
 
+    def hasconfig(self, section, name, untrusted=False):
+        return self._data(untrusted).hasitem(section, name)
+
     def has_section(self, section, untrusted=False):
         '''tell whether section exists in config.'''
         return section in self._data(untrusted)