Patchwork [04,of,18] configitems: register the 'server.bundle1' config

login
register
mail settings
Submitter Pierre-Yves David
Date July 2, 2017, 10:25 p.m.
Message ID <b22a67f6cc94b8b9e731.1499034321@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/21926/
State Accepted
Headers show

Comments

Pierre-Yves David - July 2, 2017, 10:25 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1498787046 -7200
#      Fri Jun 30 03:44:06 2017 +0200
# Node ID b22a67f6cc94b8b9e731cff675ba0884c651f98c
# Parent  c077eac329e26a4ca7da8b80071ba9161994bcfe
# EXP-Topic config.register.server
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r b22a67f6cc94
configitems: register the 'server.bundle1' config

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -107,6 +107,9 @@  coreconfigitem('devel', 'strip-obsmarker
 coreconfigitem('patch', 'fuzz',
     default=2,
 )
+coreconfigitem('server', 'bundle1',
+    default=True,
+)
 coreconfigitem('ui', 'clonebundleprefers',
     default=list,
 )
diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py
--- a/mercurial/wireproto.py
+++ b/mercurial/wireproto.py
@@ -608,7 +608,7 @@  def bundle1allowed(repo, action):
         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."""