# HG changeset patch # User Vadim Gelfer # Date 1150214183 25200 # Node ID 42b8a1ff46cf749752bfb01ee12a454753a85958 # Parent 150cde10ea215ea37e2ac7e56e9b7550ec65438e honor signals during load of extensions. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3295,6 +3295,8 @@ def dispatch(args): except ImportError: mod = importh(x[0]) external.append(mod) + except (util.SignalInterrupt, KeyboardInterrupt): + raise except Exception, inst: u.warn(_("*** failed to import extension %s: %s\n") % (x[0], inst)) if u.print_exc():