by
Changes to 2 files · Browse files at ef81cce513b7 Showing diff from parent 2ca16bc4dfca 3e0d4c6dfdcc Diff from another changeset...
@@ -52,6 +52,8 @@ return _runcatch(u, args)
except SystemExit:
pass
+ except KeyboardInterrupt:
+ print _('\nCaught keyboard interrupt, aborting.\n')
except:
from hggtk.bugreport import run
if '--debugger' in args:
|
@@ -290,7 +290,11 @@ ui.warn(_('Extdiff command not recognized\n'))
return
pats = hglib.canonpaths(pats)
- ret = extdiff.dodiff(ui, repo, diffcmd, diffopts, pats, opts)
+ try:
+ ret = extdiff.dodiff(ui, repo, diffcmd, diffopts, pats, opts)
+ except OSError, e:
+ ui.warn(str(e) + '\n')
+ return
if ret == 0:
gdialog.Prompt(_('No file changes'),
_('There are no file changes to view'), None).run()
|
Loading...