changeset 33223:d227451ee280

configitems: register the 'server.disablefullbundle' config
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Jun 2017 03:44:10 +0200
parents 593ad8df9dd2
children ab9121fda8d2
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: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()))