tests: add #no-check-commit support to test-check-commit-hg.t

The upstream test has this exclusion, and without it, commits that pass because of it will fail in our own CI. So let's add it.

Differential Revision: https://phab.mercurial-scm.org/D1010
This commit is contained in:
Phil Cohen 2017-10-11 11:21:28 -07:00
parent 8950244fd8
commit 99c432abfc

View File

@ -17,7 +17,7 @@ Go back in the current repo (fb-hgext)
$ cd $TESTDIR/..
$ unset BYPASS
$ for node in `hg log --rev 'not public() and ::.' --template '{node|short}\n'`; do
$ for node in `hg log --rev 'not public() and ::. and not desc("# no-check-commit")' --template '{node|short}\n'`; do
> hg export $node | $RUNTESTDIR/../contrib/check-commit > ${TESTTMP}/check-commit.out
> if [ $? -ne 0 ]; then
> echo "Revision $node does not comply with rules"