diff mercurial/localrepo.py @ 21157:60ad2ea5b106

getbundle: pass arbitrary arguments all along the call chain The wireprotocol command accepts arbitrary arguments, we are now passing such arguments down the call chain.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 17 Apr 2014 17:25:50 -0400
parents 2a246e737f92
children 28d76afa1568
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Apr 17 17:59:28 2014 -0400
+++ b/mercurial/localrepo.py	Thu Apr 17 17:25:50 2014 -0400
@@ -106,9 +106,9 @@
         return self._repo.known(nodes)
 
     def getbundle(self, source, heads=None, common=None, bundlecaps=None,
-                  format='HG10'):
+                  format='HG10', **kwargs):
         cg = exchange.getbundle(self._repo, source, heads=heads,
-                                common=common, bundlecaps=bundlecaps)
+                                common=common, bundlecaps=bundlecaps, **kwargs)
         if bundlecaps is not None and 'HG2X' in bundlecaps:
             # When requesting a bundle2, getbundle returns a stream to make the
             # wire level function happier. We need to build a proper object