configitems: register the 'server.disablefullbundle' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:44:10 +0200
changeset 33223 d227451ee280
parent 33222 593ad8df9dd2
child 33224 ab9121fda8d2
configitems: register the 'server.disablefullbundle' config
mercurial/configitems.py
mercurial/wireproto.py
--- a/mercurial/configitems.py	Fri Jun 30 03:44:09 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:44:10 2017 +0200
@@ -125,6 +125,9 @@
 coreconfigitem('server', 'concurrent-push-mode',
     default='strict',
 )
+coreconfigitem('server', 'disablefullbundle',
+    default=False,
+)
 coreconfigitem('ui', 'clonebundleprefers',
     default=list,
 )
--- a/mercurial/wireproto.py	Fri Jun 30 03:44:09 2017 +0200
+++ b/mercurial/wireproto.py	Fri Jun 30 03:44:10 2017 +0200
@@ -842,7 +842,7 @@
                               hint=bundle2requiredhint)
 
     try:
-        if repo.ui.configbool('server', 'disablefullbundle', False):
+        if repo.ui.configbool('server', 'disablefullbundle'):
             # Check to see if this is a full clone.
             clheads = set(repo.changelog.heads())
             heads = set(opts.get('heads', set()))