showconfig: show rc paths with --debug
authorMads Kiilerich <mads@kiilerich.com>
Mon, 26 Apr 2010 15:32:23 +0200
changeset 11048 9e643a0c3278
parent 11047 c7dbd6c4877a
child 11049 a84f14228b1d
showconfig: show rc paths with --debug
mercurial/commands.py
tests/test-hgrc.out
--- a/mercurial/commands.py	Mon Apr 26 15:58:36 2010 -0400
+++ b/mercurial/commands.py	Mon Apr 26 15:32:23 2010 +0200
@@ -873,6 +873,8 @@
     for each config item.
     """
 
+    for f in util.rcpath():
+        ui.debug(_('read config from: %s\n') % f)
     untrusted = bool(opts.get('untrusted'))
     if values:
         if len([v for v in values if '.' in v]) > 1:
--- a/tests/test-hgrc.out	Mon Apr 26 15:58:36 2010 -0400
+++ b/tests/test-hgrc.out	Mon Apr 26 15:32:23 2010 +0200
@@ -11,6 +11,7 @@
 foo.baz=bif cb
 hg: config error at $HGRCPATH:1: cannot include /no-such-file (No such file or directory)
 % customized hgrc
+read config from: .../.hgrc
 .../.hgrc:13: alias.log=log -g
 .../.hgrc:11: defaults.identify=-n
 .../.hgrc:2: ui.debug=true
@@ -22,6 +23,7 @@
 .../.hgrc:8: ui.style=~/.hgstyle
 .../.hgrc:9: ui.logtemplate={node}
 % plain hgrc
+read config from: .../.hgrc
 none: ui.traceback=True
 none: ui.verbose=False
 none: ui.debug=True