Mercurial > hg
changeset 13:eb87b7dc4236
Fix empty transaction destruction
author | mpm@selenic.com |
---|---|
date | Wed, 04 May 2005 09:32:39 -0800 |
parents | 8b64243ee17b |
children | e0e5c1b9febd |
files | mercurial/transaction.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/transaction.py Wed May 04 09:30:56 2005 -0800 +++ b/mercurial/transaction.py Wed May 04 09:32:39 2005 -0800 @@ -26,7 +26,8 @@ def __del__(self): if self.entries: self.abort() - self.close() + try: os.unlink(self.journal) + except: pass def add(self, file, offset): self.entries.append((file, offset))