comparison tests/test-hook.t @ 48874:af0b21d5a930

tests: remove output conditionalized on no-py3 I simply did a search for `^.* \(no-py3 !\)\n` and removed all matched lines. There are still some references to no-py3. But these were the simpler ones to match against. Differential Revision: https://phab.mercurial-scm.org/D12253
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 20 Feb 2022 15:18:15 -0700
parents 7ee07e1a25c0
children 42d2b31cee0b
comparison
equal deleted inserted replaced
48873:5aafc3c5bdec 48874:af0b21d5a930
977 SyntaxError: * (glob) 977 SyntaxError: * (glob)
978 exception from second failed import attempt: 978 exception from second failed import attempt:
979 Traceback (most recent call last): (py3 !) 979 Traceback (most recent call last): (py3 !)
980 SyntaxError: * (glob) (py3 !) 980 SyntaxError: * (glob) (py3 !)
981 Traceback (most recent call last): 981 Traceback (most recent call last):
982 ImportError: No module named hgext_syntaxerror (no-py3 !)
983 ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !) 982 ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !)
984 ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !) 983 ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !)
985 Traceback (most recent call last): 984 Traceback (most recent call last):
986 SyntaxError: * (glob) (py3 !) 985 SyntaxError: * (glob) (py3 !)
987 Traceback (most recent call last): (py3 !) 986 Traceback (most recent call last): (py3 !)
988 ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !) 987 ImportError: No module named 'hgext_syntaxerror' (py3 no-py36 !)
989 ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !) 988 ModuleNotFoundError: No module named 'hgext_syntaxerror' (py36 !)
990 Traceback (most recent call last): (py3 !) 989 Traceback (most recent call last): (py3 !)
991 HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (no-py3 !)
992 raise error.HookLoadError( (py38 !) 990 raise error.HookLoadError( (py38 !)
993 mercurial.error.HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (py3 !) 991 mercurial.error.HookLoadError: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed (py3 !)
994 abort: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed 992 abort: preoutgoing.syntaxerror hook is invalid: import of "syntaxerror" failed
995 993
996 $ echo '[hooks]' > ../a/.hg/hgrc 994 $ echo '[hooks]' > ../a/.hg/hgrc
1121 abort: $ENOENT$: '$TESTTMP/d/repo/nonexistent.py' 1119 abort: $ENOENT$: '$TESTTMP/d/repo/nonexistent.py'
1122 [255] 1120 [255]
1123 1121
1124 $ hg id 1122 $ hg id
1125 loading pre-identify.npmd hook failed: 1123 loading pre-identify.npmd hook failed:
1126 abort: No module named repo (no-py3 !)
1127 abort: No module named 'repo' (py3 !) 1124 abort: No module named 'repo' (py3 !)
1128 [255] 1125 [255]
1129 1126
1130 $ cd ../../b 1127 $ cd ../../b
1131 1128
1142 1139
1143 $ echo a >> a 1140 $ echo a >> a
1144 $ hg --traceback commit -ma 2>&1 | egrep '^exception|ImportError|ModuleNotFoundError|Traceback|HookLoadError|abort' 1141 $ hg --traceback commit -ma 2>&1 | egrep '^exception|ImportError|ModuleNotFoundError|Traceback|HookLoadError|abort'
1145 exception from first failed import attempt: 1142 exception from first failed import attempt:
1146 Traceback (most recent call last): 1143 Traceback (most recent call last):
1147 ImportError: No module named somebogusmodule (no-py3 !)
1148 ImportError: No module named 'somebogusmodule' (py3 no-py36 !) 1144 ImportError: No module named 'somebogusmodule' (py3 no-py36 !)
1149 ModuleNotFoundError: No module named 'somebogusmodule' (py36 !) 1145 ModuleNotFoundError: No module named 'somebogusmodule' (py36 !)
1150 exception from second failed import attempt: 1146 exception from second failed import attempt:
1151 Traceback (most recent call last): (py3 !) 1147 Traceback (most recent call last): (py3 !)
1152 ImportError: No module named 'somebogusmodule' (py3 no-py36 !) 1148 ImportError: No module named 'somebogusmodule' (py3 no-py36 !)
1156 ModuleNotFoundError: No module named 'hgext_importfail' (py36 !) 1152 ModuleNotFoundError: No module named 'hgext_importfail' (py36 !)
1157 Traceback (most recent call last): (py3 !) 1153 Traceback (most recent call last): (py3 !)
1158 ImportError: No module named 'somebogusmodule' (py3 no-py36 !) 1154 ImportError: No module named 'somebogusmodule' (py3 no-py36 !)
1159 ModuleNotFoundError: No module named 'somebogusmodule' (py36 !) 1155 ModuleNotFoundError: No module named 'somebogusmodule' (py36 !)
1160 Traceback (most recent call last): 1156 Traceback (most recent call last):
1161 ImportError: No module named hgext_importfail (no-py3 !)
1162 ImportError: No module named 'hgext_importfail' (py3 no-py36 !) 1157 ImportError: No module named 'hgext_importfail' (py3 no-py36 !)
1163 ModuleNotFoundError: No module named 'hgext_importfail' (py36 !) 1158 ModuleNotFoundError: No module named 'hgext_importfail' (py36 !)
1164 Traceback (most recent call last): 1159 Traceback (most recent call last):
1165 HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (no-py3 !)
1166 raise error.HookLoadError( (py38 !) 1160 raise error.HookLoadError( (py38 !)
1167 mercurial.error.HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (py3 !) 1161 mercurial.error.HookLoadError: precommit.importfail hook is invalid: import of "importfail" failed (py3 !)
1168 abort: precommit.importfail hook is invalid: import of "importfail" failed 1162 abort: precommit.importfail hook is invalid: import of "importfail" failed
1169 1163
1170 Issue1827: Hooks Update & Commit not completely post operation 1164 Issue1827: Hooks Update & Commit not completely post operation