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-----
--- 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