configitems: register the 'server.bundle1gd' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:44:07 +0200
changeset 33220 40861b2254a5
parent 33219 ffb1d0f541f5
child 33221 4237398c67c0
configitems: register the 'server.bundle1gd' config
mercurial/configitems.py
mercurial/wireproto.py
--- a/mercurial/configitems.py	Fri Jun 30 03:44:06 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:44:07 2017 +0200
@@ -116,6 +116,9 @@
 coreconfigitem('server', 'bundle1',
     default=True,
 )
+coreconfigitem('server', 'bundle1gd',
+    default=None,
+)
 coreconfigitem('ui', 'clonebundleprefers',
     default=list,
 )
--- a/mercurial/wireproto.py	Fri Jun 30 03:44:06 2017 +0200
+++ b/mercurial/wireproto.py	Fri Jun 30 03:44:07 2017 +0200
@@ -604,7 +604,7 @@
         return v
 
     if gd:
-        v = ui.configbool('server', 'bundle1gd', None)
+        v = ui.configbool('server', 'bundle1gd')
         if v is not None:
             return v