2014-08-06 12:40:51 +04:00
|
|
|
#require test-repo
|
|
|
|
|
|
|
|
Enable obsolescence to avoid the warning issue when obsmarker are found
|
|
|
|
|
2016-05-11 07:49:27 +03:00
|
|
|
$ . "$TESTDIR/helpers-testrepo.sh"
|
2014-08-06 12:40:51 +04:00
|
|
|
|
|
|
|
Go back in the hg repo
|
|
|
|
|
|
|
|
$ cd $TESTDIR/..
|
|
|
|
|
2016-12-22 00:44:15 +03:00
|
|
|
$ for node in `hg log --rev 'not public() and ::. and not desc("# no-check-commit")' --template '{node|short}\n'`; do
|
2017-05-21 03:50:29 +03:00
|
|
|
> hg export --git $node | contrib/check-commit > ${TESTTMP}/check-commit.out
|
2014-08-06 12:40:51 +04:00
|
|
|
> if [ $? -ne 0 ]; then
|
2016-03-01 14:51:46 +03:00
|
|
|
> echo "Revision $node does not comply with rules"
|
2014-08-06 12:40:51 +04:00
|
|
|
> echo '------------------------------------------------------'
|
|
|
|
> cat ${TESTTMP}/check-commit.out
|
|
|
|
> echo
|
|
|
|
> fi
|
|
|
|
> done
|
|
|
|
|
|
|
|
|