# HG changeset patch # User Mads Kiilerich # Date 1272288743 -7200 # Node ID 9e643a0c327809181a7f877b0278c01662d188ef # Parent c7dbd6c4877ad9baf69df975b588b799b1c79ff5 showconfig: show rc paths with --debug diff -r c7dbd6c4877a -r 9e643a0c3278 mercurial/commands.py --- 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: diff -r c7dbd6c4877a -r 9e643a0c3278 tests/test-hgrc.out --- 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