tests/test-check-commit.t
changeset 2335 f7ce3b9167d6
child 2672 a08bd434a19b
equal deleted inserted replaced
2334:b31ef65a846a 2335:f7ce3b9167d6
       
     1 #require test-repo
       
     2 
       
     3 Enable obsolescence to avoid the warning issue when obsmarker are found
       
     4 
       
     5   $ cat << EOF >> $HGRCPATH
       
     6   > [experimental]
       
     7   > evolution=all
       
     8   > EOF
       
     9 
       
    10 Go back in the hg repo
       
    11 
       
    12   $ cd $TESTDIR/..
       
    13 
       
    14   $ for node in `hg log --rev 'not public() and ::. and not desc("# no-check-commit")' --template '{node|short}\n'`; do
       
    15   >    hg export $node | ${RUNTESTDIR}/../contrib/check-commit > ${TESTTMP}/check-commit.out
       
    16   >    if [ $? -ne 0 ]; then
       
    17   >        echo "Revision $node does not comply with rules"
       
    18   >        echo '------------------------------------------------------'
       
    19   >        cat ${TESTTMP}/check-commit.out
       
    20   >        echo
       
    21   >   fi
       
    22   > done