Mercurial > hg
diff mercurial/transaction.py @ 13:eb87b7dc4236
Fix empty transaction destruction
author | mpm@selenic.com |
---|---|
date | Wed, 04 May 2005 09:32:39 -0800 |
parents | 8b64243ee17b |
children | 91f1fa847158 |
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))