Mercurial > hg
comparison mercurial/exchange.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 | 2bfb0598206a |
children | 8f6530b62177 |
comparison
equal
deleted
inserted
replaced
21156:2bfb0598206a | 21157:60ad2ea5b106 |
---|---|
659 data = base85.b85decode(remoteobs[key]) | 659 data = base85.b85decode(remoteobs[key]) |
660 pullop.repo.obsstore.mergemarkers(tr, data) | 660 pullop.repo.obsstore.mergemarkers(tr, data) |
661 pullop.repo.invalidatevolatilesets() | 661 pullop.repo.invalidatevolatilesets() |
662 return tr | 662 return tr |
663 | 663 |
664 def getbundle(repo, source, heads=None, common=None, bundlecaps=None): | 664 def getbundle(repo, source, heads=None, common=None, bundlecaps=None, |
665 **kwargs): | |
665 """return a full bundle (with potentially multiple kind of parts) | 666 """return a full bundle (with potentially multiple kind of parts) |
666 | 667 |
667 Could be a bundle HG10 or a bundle HG2X depending on bundlecaps | 668 Could be a bundle HG10 or a bundle HG2X depending on bundlecaps |
668 passed. For now, the bundle can contain only changegroup, but this will | 669 passed. For now, the bundle can contain only changegroup, but this will |
669 changes when more part type will be available for bundle2. | 670 changes when more part type will be available for bundle2. |