##// END OF EJS Templates
configitems: register the 'server.disablefullbundle' config
marmoute -
r33220:d227451e default
parent child Browse files
Show More
@@ -125,6 +125,9 b" coreconfigitem('server', 'compressioneng"
125 coreconfigitem('server', 'concurrent-push-mode',
125 coreconfigitem('server', 'concurrent-push-mode',
126 default='strict',
126 default='strict',
127 )
127 )
128 coreconfigitem('server', 'disablefullbundle',
129 default=False,
130 )
128 coreconfigitem('ui', 'clonebundleprefers',
131 coreconfigitem('ui', 'clonebundleprefers',
129 default=list,
132 default=list,
130 )
133 )
@@ -842,7 +842,7 b' def getbundle(repo, proto, others):'
842 hint=bundle2requiredhint)
842 hint=bundle2requiredhint)
843
843
844 try:
844 try:
845 if repo.ui.configbool('server', 'disablefullbundle', False):
845 if repo.ui.configbool('server', 'disablefullbundle'):
846 # Check to see if this is a full clone.
846 # Check to see if this is a full clone.
847 clheads = set(repo.changelog.heads())
847 clheads = set(repo.changelog.heads())
848 heads = set(opts.get('heads', set()))
848 heads = set(opts.get('heads', set()))
General Comments 0
You need to be logged in to leave comments. Login now