exchange: pass bundlecaps through to changegroup
authorDurham Goode <durham@fb.com>
Fri, 04 Apr 2014 16:41:51 -0700
changeset 20956 dbf0fa39a5b8
parent 20955 12f161f08d74
child 20958 df33c9014430
exchange: pass bundlecaps through to changegroup The bundlecaps passed to exchange.getbundle were being dropped completely. We should pass them on through to the changegroup. This affected the remotefilelog extension, since it relies on those bundlecaps.
mercurial/exchange.py
--- a/mercurial/exchange.py	Tue Apr 01 23:41:32 2014 -0700
+++ b/mercurial/exchange.py	Fri Apr 04 16:41:51 2014 -0700
@@ -596,7 +596,7 @@
     """
     # build bundle here.
     cg = changegroup.getbundle(repo, source, heads=heads,
-                               common=common, bundlecaps=None)
+                               common=common, bundlecaps=bundlecaps)
     if bundlecaps is None or 'HG20' not in bundlecaps:
         return cg
     # very crude first implementation,