# HG changeset patch # User Matt Mackall # Date 1240782643 18000 # Node ID cf9accffd0b31d8fbb578b0ae6955b9cc30177cb # Parent d94f17c27505c2b441fd9d87d156c9b9be158070 config: getsource -> source diff -r d94f17c27505 -r cf9accffd0b3 mercurial/config.py --- a/mercurial/config.py Sun Apr 26 16:50:43 2009 -0500 +++ b/mercurial/config.py Sun Apr 26 16:50:43 2009 -0500 @@ -50,7 +50,7 @@ self._source.update(src._source) def get(self, section, item, default=None): return self._data.get(section, {}).get(item, default) - def getsource(self, section, item): + def source(self, section, item): return self._source.get((section, item), "") def sections(self): return sorted(self._data.keys()) diff -r d94f17c27505 -r cf9accffd0b3 mercurial/templater.py --- a/mercurial/templater.py Sun Apr 26 16:50:43 2009 -0500 +++ b/mercurial/templater.py Sun Apr 26 16:50:43 2009 -0500 @@ -72,7 +72,7 @@ self.cache[key] = parsestring(val) except SyntaxError, inst: raise SyntaxError('%s: %s' % - (conf.getsource('', key), inst.args[0])) + (conf.source('', key), inst.args[0])) else: self.map[key] = os.path.join(self.base, val) diff -r d94f17c27505 -r cf9accffd0b3 mercurial/ui.py --- a/mercurial/ui.py Sun Apr 26 16:50:43 2009 -0500 +++ b/mercurial/ui.py Sun Apr 26 16:50:43 2009 -0500 @@ -133,7 +133,7 @@ return self.cdata def configsource(self, section, name, untrusted=False): - return self._get_cdata(untrusted).getsource(section, name) or 'none' + return self._get_cdata(untrusted).source(section, name) or 'none' def config(self, section, name, default=None, untrusted=False): value = self._get_cdata(untrusted).get(section, name, default)