Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/ui.py @ 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 | b11a2fb59cf5 |
children | 5371a213b0f4 |
comparison
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): |