Mercurial > public > mercurial-scm > hg-stable
diff mercurial/wireproto.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 | 468cd774aa22 |
children | 952af771bc17 |
line wrap: on
line diff
--- a/mercurial/wireproto.py Thu Apr 17 17:59:28 2014 -0400 +++ b/mercurial/wireproto.py Thu Apr 17 17:25:50 2014 -0400 @@ -325,7 +325,8 @@ bases=bases, heads=heads) return changegroupmod.unbundle10(f, 'UN') - def getbundle(self, source, heads=None, common=None, bundlecaps=None): + def getbundle(self, source, heads=None, common=None, bundlecaps=None, + **kwargs): self.requirecap('getbundle', _('look up remote changes')) opts = {} if heads is not None: @@ -334,6 +335,7 @@ opts['common'] = encodelist(common) if bundlecaps is not None: opts['bundlecaps'] = ','.join(bundlecaps) + opts.update(kwargs) f = self._callcompressable("getbundle", **opts) if bundlecaps is not None and 'HG2X' in bundlecaps: return bundle2.unbundle20(self.ui, f)