Warn if we fail to truncate something
authormpm@selenic.com
Fri, 20 May 2005 17:20:39 -0800
changeset 108 8d55c2d72c7c
parent 107 707a7481a861
child 109 95699294f580
Warn if we fail to truncate something
mercurial/transaction.py
--- a/mercurial/transaction.py	Wed May 18 18:25:37 2005 -0800
+++ b/mercurial/transaction.py	Fri May 20 17:20:39 2005 -0800
@@ -54,7 +54,10 @@
         print "transaction abort!"
 
         for f, o in self.entries:
-            self.opener(f, "a").truncate(o)
+            try:
+                self.opener(f, "a").truncate(o)
+            except:
+                print "failed to truncate", f
 
         self.entries = []