##// END OF EJS Templates
test-check-commit-hg: clarify misleading "commit message rules" error...
Martin von Zweigbergk -
r23623:80a37f70 default
parent child Browse files
Show More
@@ -1,24 +1,24 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 $ cat >> $HGRCPATH << EOF
5 $ cat >> $HGRCPATH << EOF
6 > [experimental]
6 > [experimental]
7 > evolution=createmarkers
7 > evolution=createmarkers
8 > EOF
8 > EOF
9
9
10 Go back in the hg repo
10 Go back in the hg repo
11
11
12 $ cd $TESTDIR/..
12 $ cd $TESTDIR/..
13
13
14 $ for node in `hg log --rev 'draft() and ::.' --template '{node|short}\n'`; do
14 $ for node in `hg log --rev 'draft() and ::.' --template '{node|short}\n'`; do
15 > hg export $node | contrib/check-commit > ${TESTTMP}/check-commit.out
15 > hg export $node | contrib/check-commit > ${TESTTMP}/check-commit.out
16 > if [ $? -ne 0 ]; then
16 > if [ $? -ne 0 ]; then
17 > echo "Revision $node does not comply to commit message rules"
17 > echo "Revision $node does not comply to rules"
18 > echo '------------------------------------------------------'
18 > echo '------------------------------------------------------'
19 > cat ${TESTTMP}/check-commit.out
19 > cat ${TESTTMP}/check-commit.out
20 > echo
20 > echo
21 > fi
21 > fi
22 > done
22 > done
23
23
24
24
General Comments 0
You need to be logged in to leave comments. Login now