Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0.2, 1.0.3, and 1.0.4

stable visdiff: catch OSError and IOError when deleting temp files

This is slightly better than throwing up a bug report, but only just.

Closes #1135

Changeset 0162d25e318e

Parent 16540a30efc2

by Steve Borho

Changes to one file · Browse files at 0162d25e318e Showing diff from parent 16540a30efc2 Diff from another changeset...

 
297
298
299
300
 
 
 
 
 
301
302
303
 
297
298
299
 
300
301
302
303
304
305
306
307
@@ -297,7 +297,11 @@
  dodiff(tmproot)   finally:   ui.note(_('cleaning up temp directory\n')) - shutil.rmtree(tmproot) + try: + shutil.rmtree(tmproot) + except (IOError, OSError), e: + # Leaking temporary files, fix your diff tool config + ui.note(_('unable to clean temp directory: %s\n'), str(e))     tmproot = tempfile.mkdtemp(prefix='visualdiff.')   if opts.get('mainapp'):