tests/test-check-code-hg.t
author Mads Kiilerich <madski@unity3d.com>
Sun, 09 Dec 2012 23:33:16 +0100
changeset 18053 0c2f0048125d
parent 17977 a6180647ead4
child 18575 667063b22a69
permissions -rw-r--r--
rm: drop misleading 'use -f' hint for the rm --after 'not removing' warning A warning mentioning 'forgetting' or 'recording delete' would be more correct than 'not removing' but also more confusing.

  $ check_code="$TESTDIR"/../contrib/check-code.py
  $ cd "$TESTDIR"/..
  $ if hg identify -q > /dev/null; then :
  > else
  >     echo "skipped: not a Mercurial working dir" >&2
  >     exit 80
  > fi

New errors are not allowed. Warnings are strongly discouraged.

  $ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0