##// END OF EJS Templates
bundle2.processbundle: let callers request default behavior...
Eric Sumner -
r23438:6e0ecb9a default
parent child Browse files
Show More
@@ -277,7 +277,7 b' def _notransaction():'
277 to be created"""
277 to be created"""
278 raise TransactionUnavailable()
278 raise TransactionUnavailable()
279
279
280 def processbundle(repo, unbundler, transactiongetter=_notransaction):
280 def processbundle(repo, unbundler, transactiongetter=None):
281 """This function process a bundle, apply effect to/from a repo
281 """This function process a bundle, apply effect to/from a repo
282
282
283 It iterates over each part then searches for and uses the proper handling
283 It iterates over each part then searches for and uses the proper handling
@@ -288,6 +288,8 b' def processbundle(repo, unbundler, trans'
288
288
289 Unknown Mandatory part will abort the process.
289 Unknown Mandatory part will abort the process.
290 """
290 """
291 if transactiongetter is None:
292 transactiongetter = _notransaction
291 op = bundleoperation(repo, transactiongetter)
293 op = bundleoperation(repo, transactiongetter)
292 # todo:
294 # todo:
293 # - replace this is a init function soon.
295 # - replace this is a init function soon.
General Comments 0
You need to be logged in to leave comments. Login now