[PATCH] ui: support declaring repositories in [remotes] section

Sean Farley sean at farley.io
Fri Nov 20 13:24:54 CST 2015


Yuya Nishihara <yuya at tcha.org> writes:

> On Thu, 19 Nov 2015 01:26:29 -0800, Pierre-Yves David wrote:
>> On 11/16/2015 06:19 PM, Pierre-Yves David wrote:
>> > On 11/16/2015 11:38 AM, Gregory Szorc wrote:
>> >>> On Nov 14, 2015, at 22:51, Yuya Nishihara <yuya at tcha.org> wrote:
>> >>> http://thread.gmane.org/gmane.comp.version-control.mercurial.devel/76859
>> >>>
>> >>> Anyway, if we want to put everything in "[paths]", can we use a
>> >>> different
>> >>> separator such as ":" ? It didn't work until 3.6, so nobody would use
>> >>> "foo:bar"
>> >>> aliases.
>> >>>
>> >>>   [paths]
>> >>>   smf.io = URL1
>> >>>   smf.io:pushurl = URL2
>> >>
>> >> Ooh - that's tempting.
>> >>
>> >> I'll wait for mpm or another committer to weigh in before changing
>> >> anything.
>> >
>> > Having a backward compatible way to specify these parameters without the
>> > confusing migration to a new sections sounds awesome.
>> >
>> > The only downside I see is that we use "." as the sub parameters
>> > everywhere else in the config base. Should we start accepting both
>> > everywhere? Should we have an exception here?
>
> I think "[auth]" section should support both "." and ":" because it is very
> similar to "[paths]", "key.attribute" relation, and its key may have dots.
> On the other hand, "[committemplate]" won't need ":" because "." looks like
> a path separator in it, "key.subkey...".

Yeah, I was about to comment about that too :-/


More information about the Mercurial-devel mailing list