##// END OF EJS Templates
test-archive: gracefully handle HTTPErrors on get-with-headers...
test-archive: gracefully handle HTTPErrors on get-with-headers This avoids pritting out a traceback when a get-with-headers call causes hgweb to respond with an HTTPError code.

File last commit:

r18602:339a3fa1 default
r18770:dcb6a99e default
Show More
test-check-code-hg.t
13 lines | 382 B | text/troff | Tads3Lexer
/ tests / test-check-code-hg.t
$ check_code="$TESTDIR"/../contrib/check-code.py
$ cd "$TESTDIR"/..
$ if hg identify -q > /dev/null 2>&1; then :
> else
> echo "skipped: not a Mercurial working dir" >&2
> exit 80
> fi
New errors are not allowed. Warnings are strongly discouraged.
$ hg manifest 2>/dev/null \
> | xargs "$check_code" --warnings --nolineno --per-file=0 \
> || false