# HG changeset patch # User Pierre-Yves David # Date 2017-06-30 01:44:10 # Node ID d227451ee2808b519d16e7d8517470cbb010756c # Parent 593ad8df9dd21239e41d3521121cb6dde5dd94f7 configitems: register the 'server.disablefullbundle' config diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -125,6 +125,9 @@ coreconfigitem('server', 'compressioneng coreconfigitem('server', 'concurrent-push-mode', default='strict', ) +coreconfigitem('server', 'disablefullbundle', + default=False, +) coreconfigitem('ui', 'clonebundleprefers', default=list, ) diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -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()))