check-code: Add a ``maxerr`` argument to the ``checkfile`` function
check-code.py used to halt after 15 errors. This changeset adds a new
argument to the checkfile function to control this limit.
#!/bin/sh
hg init
cat > a <<EOF
a
b
c
EOF
hg ci -Am adda
cat > a <<EOF
d
e
f
EOF
hg ci -m moda
hg diff --reverse -r0 -r1
cat >> a <<EOF
g
h
EOF
hg diff --reverse --nodates