Patchwork [05,of,18] configitems: register the 'server.bundle1gd' config

login
register
mail settings
Submitter Pierre-Yves David
Date July 2, 2017, 10:25 p.m.
Message ID <a1b9fd082ef5feb517da.1499034322@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/21929/
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 1498787047 -7200
#      Fri Jun 30 03:44:07 2017 +0200
# Node ID a1b9fd082ef5feb517da5df79f148774c1ca17e3
# Parent  b22a67f6cc94b8b9e731cff675ba0884c651f98c
# 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 a1b9fd082ef5
configitems: register the 'server.bundle1gd' config

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -110,6 +110,9 @@  coreconfigitem('patch', 'fuzz',
 coreconfigitem('server', 'bundle1',
     default=True,
 )
+coreconfigitem('server', 'bundle1gd',
+    default=None,
+)
 coreconfigitem('ui', 'clonebundleprefers',
     default=list,
 )
diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py
--- a/mercurial/wireproto.py
+++ b/mercurial/wireproto.py
@@ -604,7 +604,7 @@  def bundle1allowed(repo, action):
         return v
 
     if gd:
-        v = ui.configbool('server', 'bundle1gd', None)
+        v = ui.configbool('server', 'bundle1gd')
         if v is not None:
             return v