diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -873,6 +873,8 @@ def showconfig(ui, repo, *values, **opts 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 --git a/tests/test-hgrc.out b/tests/test-hgrc.out --- a/tests/test-hgrc.out +++ b/tests/test-hgrc.out @@ -11,6 +11,7 @@ foo.bar=a\nb\nc\nde\nfg 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 @@ hg: config error at $HGRCPATH:1: cannot .../.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