Mercurial > evolve
comparison tests/test-check-commit.t @ 2335:f7ce3b9167d6
tests: add the commit style checker from Mercurial
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 10 May 2017 12:16:01 +0200 |
parents | |
children | a08bd434a19b |
comparison
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 |