Mercurial > hg
view tests/test-check-code-hg.t @ 19131:af3b651505e2 stable
hfs+: rewrite percent-escaper (issue3918)
The original code was a bit too clever and got confused by some cp949
Korean text. This rewrite bytes the bullet and manually decodes UTF-8
sequences. Adds some doctests.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 04 May 2013 14:51:21 -0500 |
parents | cba222f01056 |
children | 2d03c8da7d98 |
line wrap: on
line source
$ 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 Check Python files without py extension $ cp \ > hg \ > hgweb.cgi \ > contrib/convert-repo \ > contrib/dumprevlog \ > contrib/hgweb.fcgi \ > contrib/hgweb.wsgi \ > contrib/simplemerge \ > contrib/undumprevlog \ > "$TESTTMP"/ $ for f in "$TESTTMP"/*; do cp "$f" "$f.py"; done $ "$check_code" --warnings --nolineno --per-file=0 "$TESTTMP"/*.py \ > || false