localpeer: propagate bundlecaps in getbundle call
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 04 Apr 2014 01:33:20 -0700
changeset 20953 8d853cad6b14
parent 20952 b24ee5076b94
child 20954 dba91f8060eb
localpeer: propagate bundlecaps in getbundle call Best arguments are the ones in use...
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed Apr 02 23:56:49 2014 -0700
+++ b/mercurial/localrepo.py	Fri Apr 04 01:33:20 2014 -0700
@@ -103,9 +103,10 @@
     def known(self, nodes):
         return self._repo.known(nodes)
 
-    def getbundle(self, source, heads=None, common=None, bundlecaps=None):
+    def getbundle(self, source, heads=None, common=None, bundlecaps=None,
+                  format='HG10'):
         return changegroup.getbundle(self._repo, source, heads=heads,
-                                     common=common, bundlecaps=None)
+                                     common=common, bundlecaps=bundlecaps)
 
     # TODO We might want to move the next two calls into legacypeer and add
     # unbundle instead.