From patchwork Thu Oct 12 15:37:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1, of, 2] configitems: correct default values of web.allow and web.hidden From: Yuya Nishihara X-Patchwork-Id: 24790 Message-Id: <69b2780c454aa671eab5.1507822637@mimosa> To: mercurial-devel@mercurial-scm.org Date: Fri, 13 Oct 2017 00:37:17 +0900 # HG changeset patch # User Yuya Nishihara # Date 1507821268 -32400 # Fri Oct 13 00:14:28 2017 +0900 # Node ID 69b2780c454aa671eab506050f0dca555f40ee62 # Parent 9b41113b9c4397dec6bb198973a8231533f56bce configitems: correct default values of web.allow and web.hidden The default of ui.configbool() is False unless explicitly specified. diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -761,10 +761,10 @@ coreconfigitem('verify', 'skipflags', default=None, ) coreconfigitem('web', 'allowbz2', - default=None, + default=False, ) coreconfigitem('web', 'allowgz', - default=None, + default=False, ) coreconfigitem('web', 'allowpull', default=True, @@ -773,7 +773,7 @@ coreconfigitem('web', 'allow_push', default=list, ) coreconfigitem('web', 'allowzip', - default=None, + default=False, ) coreconfigitem('web', 'cache', default=True, @@ -788,7 +788,7 @@ coreconfigitem('web', 'guessmime', default=False, ) coreconfigitem('web', 'hidden', - default=None, + default=False, ) coreconfigitem('web', 'labels', default=list,