[PATCH 4 of 7 path-configs] ui: implement ui.sections()

Anton Shestakov engored at ya.ru
Tue Feb 10 02:41:49 CST 2015


10.02.2015, 07:10, "Augie Fackler" <raf at durin42.com>:
> On Sat, Feb 07, 2015 at 05:13:40PM -0800, Gregory Szorc wrote:
>>  +    def sections(self, group=None, untrusted=False):
>>  +        """Obtain sections from the config with their data.
>>  +
>>  +        If ``group`` is defined, only sections belonging to the specified
>>  +        group will be returned. A section group consists of config sections
>>  +        where the names are of the from ``[group x]`` or ``[group "x"]``.
>
> I'm not sure I like defining groups using a space, partially because
> then setting them on the command line is annoying.

I'd like to add that, as a user I'd expect to see groups use : as a delimiter,
and using space for that is somewhat surprising. Any reason : can't be used
here?


More information about the Mercurial-devel mailing list