##// END OF EJS Templates
test-check-commit: don't run hg per commit...
Yuya Nishihara -
r37705:8872d466 default
parent child Browse files
Show More
@@ -1,22 +1,23 b''
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 $ for node in `testrepohg log --rev 'not public() and ::. and not desc("# no-check-commit")' --template '{node|short}\n'`; do
11 $ mkdir "$TESTTMP/p"
12 > testrepohg export --git $node \
12 $ testrepohg export --git -o "$TESTTMP/p/%n-%h" \
13 > | contrib/check-commit > ${TESTTMP}/check-commit.out
13 > -r 'not public() and ::. and not desc("# no-check-commit")'
14 $ for f in `ls "$TESTTMP/p"`; do
15 > contrib/check-commit < "$TESTTMP/p/$f" > "$TESTTMP/check-commit.out"
14 > if [ $? -ne 0 ]; then
16 > if [ $? -ne 0 ]; then
17 > node="${f##*-}"
15 > echo "Revision $node does not comply with rules"
18 > echo "Revision $node does not comply with rules"
16 > echo '------------------------------------------------------'
19 > echo '------------------------------------------------------'
17 > cat ${TESTTMP}/check-commit.out
20 > cat ${TESTTMP}/check-commit.out
18 > echo
21 > echo
19 > fi
22 > fi
20 > done
23 > done
21
22
General Comments 0
You need to be logged in to leave comments. Login now