##// END OF EJS Templates
transaction: make after a private attribute...
Gregory Szorc -
r39717:0d7b9db8 default
parent child Browse files
Show More
@@ -128,7 +128,7 b' class transaction(util.transactional):'
128 128 vfsmap = vfsmap.copy()
129 129 vfsmap[''] = opener # set default value
130 130 self._vfsmap = vfsmap
131 self.after = after
131 self._after = after
132 132 self.entries = []
133 133 self.map = {}
134 134 self._journal = journalname
@@ -488,9 +488,9 b' class transaction(util.transactional):'
488 488 % (vfs.join(b), inst))
489 489 self.entries = []
490 490 self._writeundo()
491 if self.after:
492 self.after()
493 self.after = None # Help prevent cycles.
491 if self._after:
492 self._after()
493 self._after = None # Help prevent cycles.
494 494 if self.opener.isfile(self._backupjournal):
495 495 self.opener.unlink(self._backupjournal)
496 496 if self.opener.isfile(self._journal):
General Comments 0
You need to be logged in to leave comments. Login now