tests/test-hook.t
changeset 44121 51fb449bd1a2
parent 43402 40bf3d7ecc42
child 44894 09da5cf44772
equal deleted inserted replaced
44120:35cd52c4a5cc 44121:51fb449bd1a2
   986   Traceback (most recent call last): (py3 !)
   986   Traceback (most recent call last): (py3 !)
   987   ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !)
   987   ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !)
   988   ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !)
   988   ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !)
   989   Traceback (most recent call last): (py3 !)
   989   Traceback (most recent call last): (py3 !)
   990   HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (no-py3 !)
   990   HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (no-py3 !)
       
   991       raise error.HookLoadError( (py38 !)
   991   mercurial.error.HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (py3 !)
   992   mercurial.error.HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (py3 !)
   992   abort: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed
   993   abort: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed
   993 
   994 
   994   $ echo '[hooks]' > ../a/.hg/hgrc
   995   $ echo '[hooks]' > ../a/.hg/hgrc
   995   $ echo 'preoutgoing.pass = python:hooktests.passhook' >> ../a/.hg/hgrc
   996   $ echo 'preoutgoing.pass = python:hooktests.passhook' >> ../a/.hg/hgrc
  1159   ImportError: No module named hgext_importfail (no-py3 !)
  1160   ImportError: No module named hgext_importfail (no-py3 !)
  1160   ImportError: No module named 'hgext_importfail' (py3 no-py36 !)
  1161   ImportError: No module named 'hgext_importfail' (py3 no-py36 !)
  1161   ModuleNotFoundError: No module named 'hgext_importfail' (py36 !)
  1162   ModuleNotFoundError: No module named 'hgext_importfail' (py36 !)
  1162   Traceback (most recent call last):
  1163   Traceback (most recent call last):
  1163   HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (no-py3 !)
  1164   HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (no-py3 !)
       
  1165       raise error.HookLoadError( (py38 !)
  1164   mercurial.error.HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (py3 !)
  1166   mercurial.error.HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (py3 !)
  1165   abort: precommit.importfail hook is invalid: import of "importfail" failed
  1167   abort: precommit.importfail hook is invalid: import of "importfail" failed
  1166 
  1168 
  1167 Issue1827: Hooks Update & Commit not completely post operation
  1169 Issue1827: Hooks Update & Commit not completely post operation
  1168 
  1170