# HG changeset patch # User Mike Hommey # Date 1411611097 -32400 # Node ID 4e1a80c022a435869173eae2e42330414f8d2fd4 # Parent 9a860ac8c21658b238124ec3f0a291d4893fb3bd bundle2: pass b2caps down to functions adding bundle2 parts for getbundle diff -r 9a860ac8c216 -r 4e1a80c022a4 mercurial/exchange.py --- a/mercurial/exchange.py Wed Sep 24 13:16:20 2014 -0700 +++ b/mercurial/exchange.py Thu Sep 25 11:11:37 2014 +0900 @@ -1005,13 +1005,14 @@ keys = repo.listkeys(namespace).items() part.data = pushkey.encodekeys(keys) _getbundleobsmarkerpart(bundler, repo, source, heads=heads, common=common, - bundlecaps=bundlecaps, **kwargs) + bundlecaps=bundlecaps, b2caps=b2caps, **kwargs) _getbundleextrapart(bundler, repo, source, heads=heads, common=common, - bundlecaps=bundlecaps, **kwargs) + bundlecaps=bundlecaps, b2caps=b2caps, **kwargs) return util.chunkbuffer(bundler.getchunks()) def _getbundleobsmarkerpart(bundler, repo, source, heads=None, common=None, - bundlecaps=None, **kwargs): + bundlecaps=None, b2caps=None, **kwargs): + """add an obsolescence markers part to the requested bundle""" if kwargs.get('obsmarkers', False): if heads is None: heads = repo.heads() @@ -1020,7 +1021,7 @@ buildobsmarkerspart(bundler, markers) def _getbundleextrapart(bundler, repo, source, heads=None, common=None, - bundlecaps=None, **kwargs): + bundlecaps=None, b2caps=None, **kwargs): """hook function to let extensions add parts to the requested bundle""" pass