# HG changeset patch # User Martin von Zweigbergk # Date 2015-04-07 15:45:52 # Node ID c79b1e69011017235d94332483ee92a96157be90 # Parent 13a19717ade603d8ef384ecc1a9d26500c796900 localrepo.getbundle: drop unused 'format' argument The 'format' argument was not used even when it was added in 60ad2ea5b106 (getbundle: pass arbitrary arguments all along the call chain, 2014-04-17). Note that by removing the argument, if any caller did pass a named 'format' argument, we will now pass that along to exchange.getbundle() via the kwargs. If the idea was to remove such a key, that should have been done explicitly. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -107,7 +107,7 @@ class localpeer(peer.peerrepository): return self._repo.known(nodes) def getbundle(self, source, heads=None, common=None, bundlecaps=None, - format='HG10', **kwargs): + **kwargs): cg = exchange.getbundle(self._repo, source, heads=heads, common=common, bundlecaps=bundlecaps, **kwargs) if bundlecaps is not None and 'HG2Y' in bundlecaps: