| 1 |
#require test-repo |
| 2 |
|
| 3 |
Enable obsolescence to avoid the warning issue when obsmarker are found |
| 4 |
|
| 5 |
$ . "$TESTDIR/helpers-testrepo.sh" |
| 6 |
|
| 7 |
Go back in the hg repo |
| 8 |
|
| 9 |
$ cd $TESTDIR/.. |
| 10 |
|
| 11 |
$ REVSET='not public() and ::. and not desc("# no-check-commit")' |
| 12 |
|
| 13 |
$ mkdir "$TESTTMP/p" |
| 14 |
$ REVS=`testrepohg log -r "$REVSET" -T.` |
| 15 |
$ if [ -n "$REVS" ] ; then |
| 16 |
> testrepohg export --git -o "$TESTTMP/p/%n-%h" -r "$REVSET" |
| 17 |
> for f in `ls "$TESTTMP/p"`; do |
| 18 |
> contrib/check-commit < "$TESTTMP/p/$f" > "$TESTTMP/check-commit.out" |
| 19 |
> if [ $? -ne 0 ]; then |
| 20 |
> node="${f##*-}" |
| 21 |
> echo "Revision $node does not comply with rules" |
| 22 |
> echo '------------------------------------------------------' |
| 23 |
> cat ${TESTTMP}/check-commit.out |
| 24 |
> echo |
| 25 |
> fi |
| 26 |
> done |
| 27 |
> fi |