##// 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,10 +8,13 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##*-}"
@@ -21,3 +24,4 Go back in the hg repo
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