diff mercurial/ui.py @ 8182:b97abc7c1135

showconfig: show source file and line with --debug
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Apr 2009 16:50:43 -0500
parents c8cb471fc9c2
children d2504744e7a5
line wrap: on
line diff
--- a/mercurial/ui.py	Sun Apr 26 16:50:43 2009 -0500
+++ b/mercurial/ui.py	Sun Apr 26 16:50:43 2009 -0500
@@ -151,6 +151,9 @@
             return self.ucdata
         return self.cdata
 
+    def configsource(self, section, name, untrusted=False):
+        return self._get_cdata(untrusted).getsource(section, name) or 'none'
+
     def config(self, section, name, default=None, untrusted=False):
         value = self._get_cdata(untrusted).get(section, name, default)
         if self.debugflag and not untrusted: