Mercurial > hg > mercurial-source
changeset 34006: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 +++ b/mercurial/configitems.py @@ -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 +++ b/mercurial/wireproto.py @@ -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()))