config: getsource -> source
authorMatt Mackall <mpm@selenic.com>
Sun, 26 Apr 2009 16:50:43 -0500
changeset 8198 cf9accffd0b3
parent 8197 d94f17c27505
child 8199 e9f90e5989d9
config: getsource -> source
mercurial/config.py
mercurial/templater.py
mercurial/ui.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())
--- 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)