Mercurial > public > mercurial-scm > hg-stable
diff mercurial/configitems.py @ 35061:6ef744a7df65
config: rename allow_push to allow-push
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
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 19 Oct 2017 11:46:41 +0200 |
parents | da5d5ea7d696 |
children | 8b1c887d52e7 |
line wrap: on
line diff
--- a/mercurial/configitems.py Thu Oct 19 11:43:19 2017 +0200 +++ b/mercurial/configitems.py Thu Oct 19 11:46:41 2017 +0200 @@ -1010,7 +1010,8 @@ alias=[('web', 'allowpull')], default=True, ) -coreconfigitem('web', 'allow_push', +coreconfigitem('web', 'allow-push', + alias=[('web', 'allow_push')], default=list, ) coreconfigitem('web', 'allowzip',