mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 08:02:24 +03:00
Fix empty transaction destruction
This commit is contained in:
parent
78a55d241c
commit
89e337b327
@ -26,7 +26,8 @@ class transaction:
|
||||
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user