##// END OF EJS Templates
transaction: clear callback instances after usage...
Gregory Szorc -
r28960:14e683d6 default
parent child Browse files
Show More
@@ -431,6 +431,8 b' class transaction(object):'
431 431 categories = sorted(self._finalizecallback)
432 432 for cat in categories:
433 433 self._finalizecallback[cat](self)
434 # Prevent double usage and help clear cycles.
435 self._finalizecallback = None
434 436 self._generatefiles(group=GenerationGroup.POSTFINALIZE)
435 437
436 438 self.count -= 1
@@ -486,6 +488,8 b' class transaction(object):'
486 488 categories = sorted(self._postclosecallback)
487 489 for cat in categories:
488 490 self._postclosecallback[cat](self)
491 # Prevent double usage and help clear cycles.
492 self._postclosecallback = None
489 493
490 494 @active
491 495 def abort(self):
@@ -539,6 +543,8 b' class transaction(object):'
539 543 try:
540 544 for cat in sorted(self._abortcallback):
541 545 self._abortcallback[cat](self)
546 # Prevent double usage and help clear cycles.
547 self._abortcallback = None
542 548 _playback(self.journal, self.report, self.opener, self._vfsmap,
543 549 self.entries, self._backupentries, False)
544 550 self.report(_("rollback completed\n"))
General Comments 0
You need to be logged in to leave comments. Login now