comparison tests/test-hook.t @ 26692:8d1cfd77b64f

hook: raise a separate exception for when loading a hook fails For easier catching.
author Siddharth Agarwal <sid0@fb.com>
date Mon, 12 Oct 2015 18:49:23 -0700
parents 56b2bcea2529
children 949e8c626d19
comparison
equal deleted inserted replaced
26691:23c0da28c034 26692:8d1cfd77b64f
626 ImportError: No module named somebogusmodule 626 ImportError: No module named somebogusmodule
627 exception from second failed import attempt: 627 exception from second failed import attempt:
628 Traceback (most recent call last): 628 Traceback (most recent call last):
629 ImportError: No module named hgext_importfail 629 ImportError: No module named hgext_importfail
630 Traceback (most recent call last): 630 Traceback (most recent call last):
631 Abort: precommit.importfail hook is invalid (import of "importfail" failed) 631 HookLoadError: precommit.importfail hook is invalid (import of "importfail" failed)
632 abort: precommit.importfail hook is invalid (import of "importfail" failed) 632 abort: precommit.importfail hook is invalid (import of "importfail" failed)
633 633
634 Issue1827: Hooks Update & Commit not completely post operation 634 Issue1827: Hooks Update & Commit not completely post operation
635 635
636 commit and update hooks should run after command completion. The largefiles 636 commit and update hooks should run after command completion. The largefiles