Show More
@@ -968,9 +968,7 test python hooks | |||||
968 | (run with --traceback for stack trace) |
|
968 | (run with --traceback for stack trace) | |
969 | [255] |
|
969 | [255] | |
970 |
|
970 | |||
971 | The second egrep is to filter out lines like ' ^', which are slightly |
|
971 | $ hg pull ../a --traceback 2>&1 | egrep 'pulling|searching|^exception|Traceback|SyntaxError|ImportError|ModuleNotFoundError|HookLoadError|abort' | |
972 | different between Python 2.6 and Python 2.7. |
|
|||
973 | $ hg pull ../a --traceback 2>&1 | egrep -v '^( +File| [_a-zA-Z*(])' | egrep -v '^( )+(\^)?$' |
|
|||
974 | pulling from ../a |
|
972 | pulling from ../a | |
975 | searching for changes |
|
973 | searching for changes | |
976 | exception from first failed import attempt: |
|
974 | exception from first failed import attempt: | |
@@ -1132,7 +1130,7 make sure --traceback works on hook impo | |||||
1132 | $ echo 'precommit.importfail = python:importfail.whatever' >> .hg/hgrc |
|
1130 | $ echo 'precommit.importfail = python:importfail.whatever' >> .hg/hgrc | |
1133 |
|
1131 | |||
1134 | $ echo a >> a |
|
1132 | $ echo a >> a | |
1135 | $ hg --traceback commit -ma 2>&1 | egrep -v '^( +File| [a-zA-Z(])' |
|
1133 | $ hg --traceback commit -ma 2>&1 | egrep '^exception|ImportError|ModuleNotFoundError|Traceback|HookLoadError|abort' | |
1136 | exception from first failed import attempt: |
|
1134 | exception from first failed import attempt: | |
1137 | Traceback (most recent call last): |
|
1135 | Traceback (most recent call last): | |
1138 | ImportError: No module named somebogusmodule |
|
1136 | ImportError: No module named somebogusmodule |
General Comments 0
You need to be logged in to leave comments.
Login now