comparison mercurial/exchange.py @ 21257:0055b5b3eb9c

exchange: propagate arguments to the _getbundleextrapart function The arguments was wrongly propagated (again).
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 07 May 2014 19:28:17 -0700
parents 750c7c14a637
children 71931b789424
comparison
equal deleted inserted replaced
21256:750c7c14a637 21257:0055b5b3eb9c
697 blob = urllib.unquote(bcaps[len('bundle2='):]) 697 blob = urllib.unquote(bcaps[len('bundle2='):])
698 b2caps.update(bundle2.decodecaps(blob)) 698 b2caps.update(bundle2.decodecaps(blob))
699 bundler = bundle2.bundle20(repo.ui, b2caps) 699 bundler = bundle2.bundle20(repo.ui, b2caps)
700 part = bundle2.bundlepart('b2x:changegroup', data=cg.getchunks()) 700 part = bundle2.bundlepart('b2x:changegroup', data=cg.getchunks())
701 bundler.addpart(part) 701 bundler.addpart(part)
702 _getbundleextrapart(bundler, repo, source, heads=None, common=None, 702 _getbundleextrapart(bundler, repo, source, heads=heads, common=common,
703 bundlecaps=None, **kwargs) 703 bundlecaps=bundlecaps, **kwargs)
704 return util.chunkbuffer(bundler.getchunks()) 704 return util.chunkbuffer(bundler.getchunks())
705 705
706 def _getbundleextrapart(bundler, repo, source, heads=None, common=None, 706 def _getbundleextrapart(bundler, repo, source, heads=None, common=None,
707 bundlecaps=None, **kwargs): 707 bundlecaps=None, **kwargs):
708 """hook function to let extensions add parts to the requested bundle""" 708 """hook function to let extensions add parts to the requested bundle"""