changeset 33219:ffb1d0f541f5

configitems: register the 'server.bundle1' config
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Jun 2017 03:44:06 +0200
parents 24f3ff50736d
children 40861b2254a5
files mercurial/configitems.py mercurial/wireproto.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/configitems.py	Fri Jun 30 03:42:43 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:44:06 2017 +0200
@@ -113,6 +113,9 @@
 coreconfigitem('patch', 'fuzz',
     default=2,
 )
+coreconfigitem('server', 'bundle1',
+    default=True,
+)
 coreconfigitem('ui', 'clonebundleprefers',
     default=list,
 )
--- a/mercurial/wireproto.py	Fri Jun 30 03:42:43 2017 +0200
+++ b/mercurial/wireproto.py	Fri Jun 30 03:44:06 2017 +0200
@@ -608,7 +608,7 @@
         if v is not None:
             return v
 
-    return ui.configbool('server', 'bundle1', True)
+    return ui.configbool('server', 'bundle1')
 
 def supportedcompengines(ui, proto, role):
     """Obtain the list of supported compression engines for a request."""