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 |