configitems: register the 'server.disablefullbundle' config

This commit is contained in:
Pierre-Yves David 2017-06-30 03:44:10 +02:00
parent 8e3b51a1d6
commit 3369f427a0
2 changed files with 4 additions and 1 deletions

View File

@ -125,6 +125,9 @@ coreconfigitem('server', 'compressionengines',
coreconfigitem('server', 'concurrent-push-mode',
default='strict',
)
coreconfigitem('server', 'disablefullbundle',
default=False,
)
coreconfigitem('ui', 'clonebundleprefers',
default=list,
)

View File

@ -842,7 +842,7 @@ def getbundle(repo, proto, others):
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()))