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

transaction: add a notion of hook arguments

It is now possible to register parameters to be used when invoking hooks in this
transaction. This will cope with the fact that bundle2 adds multiple data types
in a single transaction.

Do not expect any wide and consistent usages of this in the next release. This
will be used by bundle2 experiments first. It will be made better for the release
after.
parent c0d96bce
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,8 @@
self.backupmap = {}
self.journal = journal
self._queue = []
# a dict of arguments to be passed to hooks
self.hookargs = {}
self.backupjournal = "%s.backupfiles" % journal
self.file = opener.open(self.journal, "w")
......
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