Skip to content
Snippets Groups Projects
Commit 28a6c2d7 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

bundle2: introduce an "applybundle" function

There is a case where the intent is clear and the transaction is not optional. We
want to be able to alter that transaction in a wide and easy way. We cannot get
a unified '.apply(repo)' method for bundle1 and bundle2 yet because the api are
still a bit too far apart. But this is a good step forward to get the rc out.
parent e6003ecf
No related branches found
No related tags found
No related merge requests found
......@@ -302,6 +302,10 @@
to be created"""
raise TransactionUnavailable()
def applybundle(repo, unbundler, tr, op=None):
# transform me into unbundler.apply() as soon as the freeze is lifted
return processbundle(repo, unbundler, lambda: tr, op=op)
def processbundle(repo, unbundler, transactiongetter=None, op=None):
"""This function process a bundle, apply effect to/from a repo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment