comparison mercurial/localrepo.py @ 24639:c79b1e690110

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.
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 07 Apr 2015 08:45:52 -0700
parents 919f8ce040be
children 60fecc5b14a4
comparison
equal deleted inserted replaced
24638:13a19717ade6 24639:c79b1e690110
105 105
106 def known(self, nodes): 106 def known(self, nodes):
107 return self._repo.known(nodes) 107 return self._repo.known(nodes)
108 108
109 def getbundle(self, source, heads=None, common=None, bundlecaps=None, 109 def getbundle(self, source, heads=None, common=None, bundlecaps=None,
110 format='HG10', **kwargs): 110 **kwargs):
111 cg = exchange.getbundle(self._repo, source, heads=heads, 111 cg = exchange.getbundle(self._repo, source, heads=heads,
112 common=common, bundlecaps=bundlecaps, **kwargs) 112 common=common, bundlecaps=bundlecaps, **kwargs)
113 if bundlecaps is not None and 'HG2Y' in bundlecaps: 113 if bundlecaps is not None and 'HG2Y' in bundlecaps:
114 # When requesting a bundle2, getbundle returns a stream to make the 114 # When requesting a bundle2, getbundle returns a stream to make the
115 # wire level function happier. We need to build a proper object 115 # wire level function happier. We need to build a proper object