tests/test-check-code-hg.t
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Sat, 22 Dec 2012 01:34:23 +0100
changeset 18123 6fb3b8c61775
parent 17977 a6180647ead4
child 18575 667063b22a69
permissions -rw-r--r--
branchmap: `stream_in` write remote branchcache to local one The previous code was writing it to a non existent `branchcache` attribute. We now write is to the proper `_branchcache` attribute and initialize the `_branchcachetip` at the same time. We keep writing it to disk, the previous code had this part right.

  $ 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