comparison mercurial/commands.py @ 11048:9e643a0c3278

showconfig: show rc paths with --debug
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 26 Apr 2010 15:32:23 +0200
parents 4d3288197717
children 5d35f7d93514
comparison
equal deleted inserted replaced
11047:c7dbd6c4877a 11048:9e643a0c3278
871 871
872 With --debug, the source (filename and line number) is printed 872 With --debug, the source (filename and line number) is printed
873 for each config item. 873 for each config item.
874 """ 874 """
875 875
876 for f in util.rcpath():
877 ui.debug(_('read config from: %s\n') % f)
876 untrusted = bool(opts.get('untrusted')) 878 untrusted = bool(opts.get('untrusted'))
877 if values: 879 if values:
878 if len([v for v in values if '.' in v]) > 1: 880 if len([v for v in values if '.' in v]) > 1:
879 raise util.Abort(_('only one config item permitted')) 881 raise util.Abort(_('only one config item permitted'))
880 for section, name, value in ui.walkconfig(untrusted=untrusted): 882 for section, name, value in ui.walkconfig(untrusted=untrusted):