bundle2: pass b2caps down to functions adding bundle2 parts for getbundle
authorMike Hommey <mh@glandium.org>
Thu, 25 Sep 2014 11:11:37 +0900
changeset 22541 4e1a80c022a4
parent 22540 9a860ac8c216
child 22542 6b180a0c703e
bundle2: pass b2caps down to functions adding bundle2 parts for getbundle
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