mercurial/ui.py
changeset 4481 1b5b98837bb5
parent 4267 b11a2fb59cf5
child 4517 5371a213b0f4
equal deleted inserted replaced
4480:6b84c8d2f66f 4481:1b5b98837bb5
   268             result = default or []
   268             result = default or []
   269         if isinstance(result, basestring):
   269         if isinstance(result, basestring):
   270             result = result.replace(",", " ").split()
   270             result = result.replace(",", " ").split()
   271         return result
   271         return result
   272 
   272 
   273     def has_config(self, section, untrusted=False):
   273     def has_section(self, section, untrusted=False):
   274         '''tell whether section exists in config.'''
   274         '''tell whether section exists in config.'''
   275         cdata = self._get_cdata(untrusted)
   275         cdata = self._get_cdata(untrusted)
   276         return cdata.has_section(section)
   276         return cdata.has_section(section)
   277 
   277 
   278     def _configitems(self, section, untrusted, abort):
   278     def _configitems(self, section, untrusted, abort):