comparison mercurial/transaction.py @ 108:8d55c2d72c7c

Warn if we fail to truncate something
author mpm@selenic.com
date Fri, 20 May 2005 17:20:39 -0800
parents 589f507bb259
children 5dcbe4d9a30c
comparison
equal deleted inserted replaced
107:707a7481a861 108:8d55c2d72c7c
52 if not self.entries: return 52 if not self.entries: return
53 53
54 print "transaction abort!" 54 print "transaction abort!"
55 55
56 for f, o in self.entries: 56 for f, o in self.entries:
57 self.opener(f, "a").truncate(o) 57 try:
58 self.opener(f, "a").truncate(o)
59 except:
60 print "failed to truncate", f
58 61
59 self.entries = [] 62 self.entries = []
60 63
61 print "rollback completed" 64 print "rollback completed"
62 65