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