[PATCH] config: rename streamunbundle to stream-unbundle

Yuya Nishihara yuya at tcha.org
Mon May 14 08:22:25 EDT 2018


On Mon, 14 May 2018 11:23:24 +0200, David Demelier wrote:
> # HG changeset patch
> # User David Demelier <markand at malikania.fr>
> # Date 1526286491 -7200
> #      Mon May 14 10:28:11 2018 +0200
> # Node ID 3cd7780897a23b96f6bbb5d5fccc2a3006931365
> # Parent  8ba0344f9fb145f5b9b909f1211defc9e0793f68
> config: rename streamunbundle to stream-unbundle
> 
> As part of ConfigConsolidationPlan [1], rename the option according to
> the new UI guidelines [2] and add an alias for backward compatibility.
> 
> [1]: https://www.mercurial-scm.org/wiki/ConfigConsolidationPlan
> [2]: https://www.mercurial-scm.org/wiki/UIGuideline#adding_new_options
> 
> diff -r 8ba0344f9fb1 -r 3cd7780897a2 mercurial/configitems.py
> --- a/mercurial/configitems.py	Fri May 11 22:07:43 2018 -0400
> +++ b/mercurial/configitems.py	Mon May 14 10:28:11 2018 +0200
> @@ -932,7 +932,8 @@
>  coreconfigitem('server', 'disablefullbundle',
>      default=False,
>  )
> -coreconfigitem('server', 'streamunbundle',
> +coreconfigitem('server', 'stream-unbundle',
> +    alias=[('server', 'streamunbundle')],
>      default=False,

Let's not add more aliases for now. Someone will have to refactor the
ui.config* layer so the user server.streamunbundle will never be shadowed
by the system server.stream-unbundle.


More information about the Mercurial-devel mailing list