changeset 108:8d55c2d72c7c

Warn if we fail to truncate something
author mpm@selenic.com
date Fri, 20 May 2005 17:20:39 -0800
parents 707a7481a861
children 95699294f580
files mercurial/transaction.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 = []