Mercurial > hg-stable
changeset 8198:cf9accffd0b3
config: getsource -> source
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Apr 2009 16:50:43 -0500 |
parents | d94f17c27505 |
children | e9f90e5989d9 |
files | mercurial/config.py mercurial/templater.py mercurial/ui.py |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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())
--- 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)
--- 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)