--- 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)