mercurial/bundlerepo.py
changeset 29684 ff5d5751fc1b
parent 29389 98e8313dcd9e
child 29689 39537bc64442
equal deleted inserted replaced
29683:6786c3f8684d 29684:ff5d5751fc1b
   478     bundlerepo = None
   478     bundlerepo = None
   479     localrepo = other.local()
   479     localrepo = other.local()
   480     if bundlename or not localrepo:
   480     if bundlename or not localrepo:
   481         # create a bundle (uncompressed if other repo is not local)
   481         # create a bundle (uncompressed if other repo is not local)
   482 
   482 
   483         canbundle2 = (ui.configbool('experimental', 'bundle2-exp', True)
   483         # developer config: devel.legacy.exchange
       
   484         legexc = ui.configlist('devel', 'legacy.exchange')
       
   485         if not legexc:
       
   486             forcebundle1 = not ui.configbool('experimental', 'bundle2-exp',
       
   487                                              True)
       
   488         else:
       
   489             forcebundle1 = 'bundle2' not in legexc and 'bundle1' in legexc
       
   490         canbundle2 = (not forcebundle1
   484                       and other.capable('getbundle')
   491                       and other.capable('getbundle')
   485                       and other.capable('bundle2'))
   492                       and other.capable('bundle2'))
   486         if canbundle2:
   493         if canbundle2:
   487             kwargs = {}
   494             kwargs = {}
   488             kwargs['common'] = common
   495             kwargs['common'] = common