[PATCH 2 of 2] configitems: add alias support in config

David Demelier demelier.david at gmail.com
Tue Jul 4 11:09:22 EDT 2017


Le 04/07/2017 à 15:44, Yuya Nishihara a écrit :
> On Mon, 03 Jul 2017 15:55:47 +0200, David Demelier wrote:
>> # HG changeset patch
>> # User David Demelier <demelier.david at gmail.com>
>> # Date 1499079875 -7200
>> #      Mon Jul 03 13:04:35 2017 +0200
>> # Node ID 160c36de3dd036409b3954b95290f4a22493ac64
>> # Parent  2d7f5d2ab80c85251baea4fb49c13aac64f07763
>> configitems: add alias support in config
>>
>> Aliases define optional alternatives to existing options. For example the old
>> option ui.user was deprecated and replaced by ui.username. With this mechanism,
>> it's even possible to create an alias to an option in a different section.
>>
>> Add ui.user as alias to ui.username as an example of this concept.
>>
>> The old alternates principle in ui.config is removed as it was used only for
>> this option.
> 
> This looks good to me. Does this depend on the previous patch? If not, I'll
> queue it.
> 

It does not but tests for hgweb_mod.py will trigger a warning.

I'm actually chatting with Pierre-Yves about your other question because 
I'm not much fluent with python :)

Regards,


More information about the Mercurial-devel mailing list