[PATCH 2 of 4 STABLE] exchange: propagate arguments to the _getbundleextrapart function

pierre-yves.david at ens-lyon.org pierre-yves.david at ens-lyon.org
Thu May 15 00:50:14 CDT 2014


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1399516097 25200
#      Wed May 07 19:28:17 2014 -0700
# Branch stable
# Node ID 3ec47738fec4dd9567a26bbaf56c822378d8e09c
# Parent  4a4efce2dc1350fc85c4e4807c0b92e94b8e82f0
exchange: propagate arguments to the _getbundleextrapart function

The arguments was wrongly propagated (again).

This a backport of 0055b5b3eb9c

diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -697,12 +697,12 @@ def getbundle(repo, source, heads=None, 
             blob = urllib.unquote(bcaps[len('bundle2='):])
             b2caps.update(bundle2.decodecaps(blob))
     bundler = bundle2.bundle20(repo.ui, b2caps)
     part = bundle2.bundlepart('b2x:changegroup', data=cg.getchunks())
     bundler.addpart(part)
-    _getbundleextrapart(bundler, repo, source, heads=None, common=None,
-                        bundlecaps=None, **kwargs)
+    _getbundleextrapart(bundler, repo, source, heads=heads, common=common,
+                        bundlecaps=bundlecaps, **kwargs)
     return util.chunkbuffer(bundler.getchunks())
 
 def _getbundleextrapart(bundler, repo, source, heads=None, common=None,
                         bundlecaps=None, **kwargs):
     """hook function to let extensions add parts to the requested bundle"""


More information about the Mercurial-devel mailing list