Changeset 0162d25e318e…
Parent 16540a30efc2…
by
Changes to one file · Browse files at 0162d25e318e Showing diff from parent 16540a30efc2 Diff from another changeset...
@@ -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'):
|
Loading...