changeset 23218:0e78ea8e592a

exchange: prepare kwargs for bundle2 part generation exactly once
author Mike Edgar <adgar@google.com>
date Wed, 29 Oct 2014 12:46:08 -0400
parents 2f12ac53b528
children 61cd79ac4b99
files mercurial/exchange.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/exchange.py	Sat Oct 25 00:40:51 2014 -0400
+++ b/mercurial/exchange.py	Wed Oct 29 12:46:08 2014 -0400
@@ -1182,10 +1182,11 @@
             b2caps.update(bundle2.decodecaps(blob))
     bundler = bundle2.bundle20(repo.ui, b2caps)
 
+    kwargs['heads'] = heads
+    kwargs['common'] = common
+
     for name in getbundle2partsorder:
         func = getbundle2partsmapping[name]
-        kwargs['heads'] = heads
-        kwargs['common'] = common
         func(bundler, repo, source, bundlecaps=bundlecaps, b2caps=b2caps,
              **kwargs)