##// END OF EJS Templates
test-check-commit-hg.t: automatically test all 'draft() and ::.' changesets...
Pierre-Yves David -
r22067:14306a68 default
parent child Browse files
Show More
@@ -0,0 +1,26 b''
1 #require test-repo
2
3 Enable obsolescence to avoid the warning issue when obsmarker are found
4
5 $ cat > obs.py << EOF
6 > import mercurial.obsolete
7 > mercurial.obsolete._enabled = True
8 > EOF
9 $ echo '[extensions]' >> $HGRCPATH
10 $ echo "obs=${TESTTMP}/obs.py" >> $HGRCPATH
11
12 Go back in the hg repo
13
14 $ cd $TESTDIR/..
15
16 $ for node in `hg log --rev 'draft() and ::.' --template '{node|short}\n'`; do
17 > hg export $node | contrib/check-commit > ${TESTTMP}/check-commit.out
18 > if [ $? -ne 0 ]; then
19 > echo "Revision $node does not comply to commit message rules"
20 > echo '------------------------------------------------------'
21 > cat ${TESTTMP}/check-commit.out
22 > echo
23 > fi
24 > done
25
26
General Comments 0
You need to be logged in to leave comments. Login now