--- a/mercurial/bundle2.py Fri Nov 21 15:06:38 2014 -0800
+++ b/mercurial/bundle2.py Mon Nov 24 16:04:44 2014 -0800
@@ -277,7 +277,7 @@
to be created"""
raise TransactionUnavailable()
-def processbundle(repo, unbundler, transactiongetter=_notransaction):
+def processbundle(repo, unbundler, transactiongetter=None):
"""This function process a bundle, apply effect to/from a repo
It iterates over each part then searches for and uses the proper handling
@@ -288,6 +288,8 @@
Unknown Mandatory part will abort the process.
"""
+ if transactiongetter is None:
+ transactiongetter = _notransaction
op = bundleoperation(repo, transactiongetter)
# todo:
# - replace this is a init function soon.