##// END OF EJS Templates
tests: fix test-check-commit.t when all commits are public...
Augie Fackler -
r37834:33817e09 stable
parent child Browse files
Show More
@@ -8,16 +8,20 b' Go back in the hg repo'
8 8
9 9 $ cd $TESTDIR/..
10 10
11 $ REVSET='not public() and ::. and not desc("# no-check-commit")'
12
11 13 $ mkdir "$TESTTMP/p"
12 $ testrepohg export --git -o "$TESTTMP/p/%n-%h" \
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"
16 > if [ $? -ne 0 ]; then
17 > node="${f##*-}"
18 > echo "Revision $node does not comply with rules"
19 > echo '------------------------------------------------------'
20 > cat ${TESTTMP}/check-commit.out
21 > echo
22 > fi
23 > done
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
General Comments 0
You need to be logged in to leave comments. Login now