mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
configitems: register the 'server.disablefullbundle' config
This commit is contained in:
parent
8e3b51a1d6
commit
3369f427a0
@ -125,6 +125,9 @@ coreconfigitem('server', 'compressionengines',
|
||||
coreconfigitem('server', 'concurrent-push-mode',
|
||||
default='strict',
|
||||
)
|
||||
coreconfigitem('server', 'disablefullbundle',
|
||||
default=False,
|
||||
)
|
||||
coreconfigitem('ui', 'clonebundleprefers',
|
||||
default=list,
|
||||
)
|
||||
|
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user