comparison mercurial/exchange.py @ 20956:dbf0fa39a5b8

exchange: pass bundlecaps through to changegroup The bundlecaps passed to exchange.getbundle were being dropped completely. We should pass them on through to the changegroup. This affected the remotefilelog extension, since it relies on those bundlecaps.
author Durham Goode <durham@fb.com>
date Fri, 04 Apr 2014 16:41:51 -0700
parents 12f161f08d74
children 984850270acb
comparison
equal deleted inserted replaced
20955:12f161f08d74 20956:dbf0fa39a5b8
594 The implementation is at a very early stage and will get massive rework 594 The implementation is at a very early stage and will get massive rework
595 when the API of bundle is refined. 595 when the API of bundle is refined.
596 """ 596 """
597 # build bundle here. 597 # build bundle here.
598 cg = changegroup.getbundle(repo, source, heads=heads, 598 cg = changegroup.getbundle(repo, source, heads=heads,
599 common=common, bundlecaps=None) 599 common=common, bundlecaps=bundlecaps)
600 if bundlecaps is None or 'HG20' not in bundlecaps: 600 if bundlecaps is None or 'HG20' not in bundlecaps:
601 return cg 601 return cg
602 # very crude first implementation, 602 # very crude first implementation,
603 # the bundle API will change and the generation will be done lazily. 603 # the bundle API will change and the generation will be done lazily.
604 bundler = bundle2.bundle20(repo.ui) 604 bundler = bundle2.bundle20(repo.ui)