comparison tests/test-check-commit-hg.t @ 23623:80a37f706011

test-check-commit-hg: clarify misleading "commit message rules" error The test case doesn't only check the commit message, but also the patch, which can result in confusing output like + Revision df6f06d17100 does not comply to commit message rules + ------------------------------------------------------ + 32: adds double empty line + + even when there are no double blank lines in the commit message. Drop the "commit message" part to make it less confusing.
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 18 Dec 2014 10:11:38 -0800
parents fab9dda0f2a3
children
comparison
equal deleted inserted replaced
23622:cb9d845406e5 23623:80a37f706011
12 $ cd $TESTDIR/.. 12 $ cd $TESTDIR/..
13 13
14 $ for node in `hg log --rev 'draft() and ::.' --template '{node|short}\n'`; do 14 $ for node in `hg log --rev 'draft() and ::.' --template '{node|short}\n'`; do
15 > hg export $node | contrib/check-commit > ${TESTTMP}/check-commit.out 15 > hg export $node | contrib/check-commit > ${TESTTMP}/check-commit.out
16 > if [ $? -ne 0 ]; then 16 > if [ $? -ne 0 ]; then
17 > echo "Revision $node does not comply to commit message rules" 17 > echo "Revision $node does not comply to rules"
18 > echo '------------------------------------------------------' 18 > echo '------------------------------------------------------'
19 > cat ${TESTTMP}/check-commit.out 19 > cat ${TESTTMP}/check-commit.out
20 > echo 20 > echo
21 > fi 21 > fi
22 > done 22 > done