honor signals during load of extensions.
authorVadim Gelfer <vadim.gelfer@gmail.com>
Tue, 13 Jun 2006 08:56:23 -0700
changeset 2428 42b8a1ff46cf
parent 2427 150cde10ea21
child 2429 6a8f7c3f7333
honor signals during load of extensions.
mercurial/commands.py
--- a/mercurial/commands.py	Mon Jun 12 22:09:50 2006 -0700
+++ b/mercurial/commands.py	Tue Jun 13 08:56:23 2006 -0700
@@ -3295,6 +3295,8 @@
                 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():