tests/test-check-commit.t
changeset 28293 a22b6fa5a844
parent 27756 598e21079884
child 29219 3c9066ed557c
equal deleted inserted replaced
28292:3eb7faf6d958 28293:a22b6fa5a844
    12   $ cd $TESTDIR/..
    12   $ cd $TESTDIR/..
    13 
    13 
    14   $ for node in `hg log --rev 'not public() and ::.' --template '{node|short}\n'`; do
    14   $ for node in `hg log --rev 'not public() 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 rules"
    17   >        echo "Revision $node does not comply with 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