2014-08-06 12:40:51 +04:00
|
|
|
#require test-repo
|
|
|
|
|
|
|
|
Enable obsolescence to avoid the warning issue when obsmarker are found
|
|
|
|
|
2014-10-15 00:34:25 +04:00
|
|
|
$ cat >> $HGRCPATH << EOF
|
|
|
|
> [experimental]
|
|
|
|
> evolution=createmarkers
|
2014-08-06 12:40:51 +04:00
|
|
|
> EOF
|
|
|
|
|
|
|
|
Go back in the hg repo
|
|
|
|
|
|
|
|
$ cd $TESTDIR/..
|
|
|
|
|
|
|
|
$ for node in `hg log --rev 'draft() and ::.' --template '{node|short}\n'`; do
|
|
|
|
> hg export $node | contrib/check-commit > ${TESTTMP}/check-commit.out
|
|
|
|
> if [ $? -ne 0 ]; then
|
2014-12-18 21:11:38 +03:00
|
|
|
> echo "Revision $node does not comply to rules"
|
2014-08-06 12:40:51 +04:00
|
|
|
> echo '------------------------------------------------------'
|
|
|
|
> cat ${TESTTMP}/check-commit.out
|
|
|
|
> echo
|
|
|
|
> fi
|
|
|
|
> done
|
|
|
|
|
|
|
|
|