Patchwork [1,of,2] configitems: correct default values of web.allow<archtype> and web.hidden

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 12, 2017, 3:37 p.m.
Message ID <69b2780c454aa671eab5.1507822637@mimosa>
Download mbox | patch
Permalink /patch/24790/
State Accepted
Headers show

Comments

Yuya Nishihara - Oct. 12, 2017, 3:37 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1507821268 -32400
#      Fri Oct 13 00:14:28 2017 +0900
# Node ID 69b2780c454aa671eab506050f0dca555f40ee62
# Parent  9b41113b9c4397dec6bb198973a8231533f56bce
configitems: correct default values of web.allow<archtype> and web.hidden

The default of ui.configbool() is False unless explicitly specified.

Patch

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,