transaction: nullify journal after close()
authormpm@selenic.com
Sat, 02 Jul 2005 13:16:42 -0800
changeset 573 fbfbd4e506c3
parent 572 cb7cd12e00f1
child 574 af7e21f3b2d9
transaction: nullify journal after close() -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 transaction: nullify journal after close() This keeps us from trying to cleanup in __del__. bug spotted by K Thananchayan <thananck@yahoo.com> manifest hash: 1f4c5fa43d2458cdcb6ec0f0a7066b3c3e699f33 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxwQ6ywK+sNU5EO8RAuGhAJ9+BnKILwRCF9EKlPTz2zptiysQ/QCgsB3s VKIehiStv+ibWQQi15k4mwk= =nZD1 -----END PGP SIGNATURE-----
mercurial/transaction.py
--- a/mercurial/transaction.py	Sat Jul 02 12:45:53 2005 -0800
+++ b/mercurial/transaction.py	Sat Jul 02 13:16:42 2005 -0800
@@ -52,6 +52,7 @@
             util.rename(self.journal, self.after)
         else:
             os.unlink(self.journal)
+        self.journal = None
 
     def abort(self):
         if not self.entries: return