The help for hg config indicates that multiple config options can be specified: hg config [-u] [NAME]... Trying this out unfortunately fails: $ hg config a.a b.b abort: only one config item permitted
It's documented as follows: > With one argument of the form section.name, print just the value > of that config item. > > With multiple arguments, print names and values of all config > items with matching section names. So the valid syntax is: $ hg config SECTION.NAME or $ hg config SECTION SECTION... Maybe we can allow multiple SECTION.NAMEs, but the default output format isn't well suited for that.
I feel like `hg config remotefilelog.cachelimit ui.username` could have the same output as this: augie% hg config remotefilelog ui | egrep '(cachelimit|username)' remotefilelog.cachelimit=2 GB ui.username=Augie Fackler <raf@durin42.com> Basically, show only the value if we have a single config item, and show section.key=value if we had more than one. What do you think?
> show only the value if we have a single config item, and show section.key=value if we had more than one. Seems fine. More precisely, show only the value if a single fully-qualified config name is specified.
That's indeed the behaviour I expected.
Fixed by https://mercurial-scm.org/repo/hg/rev/199443c55463 Yuya Nishihara <yuya@tcha.org> showconfig: allow multiple section.name selectors (issue5797) This seems useful and we can disambiguate the output format solely by the type of the command arguments. (please test the fix)
Bug was set to TESTING for 7 days, resolving