tests/test-check-code-hg.t
author Mads Kiilerich <mads@kiilerich.com>
Thu, 10 Jan 2013 00:44:23 +0100
changeset 18334 44bda93df90e
parent 17977 a6180647ead4
child 18575 667063b22a69
permissions -rw-r--r--
merge: changing the mode of a file is also an update It was a change in the file system that wasn't reported in the summaries.

  $ 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