localrepo.getbundle: drop unused 'format' argument
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 07 Apr 2015 08:45:52 -0700
changeset 24639 c79b1e690110
parent 24638 13a19717ade6
child 24640 685639f9430d
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.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Tue Apr 07 12:35:07 2015 -0700
+++ b/mercurial/localrepo.py	Tue Apr 07 08:45:52 2015 -0700
@@ -107,7 +107,7 @@
         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: