Show More
@@ -480,7 +480,14 def getremotechanges(ui, repo, other, on | |||||
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: |
General Comments 0
You need to be logged in to leave comments.
Login now