comparison tests/test-mq-eol.t @ 23172:e955549cd045

tests: write hgrc of more than two lines by using shell heredoc Here document should be readable than repeating echo commands.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 04 Nov 2014 23:41:46 +0900
parents c63a09b6b337
children f1eaf03dd608
comparison
equal deleted inserted replaced
23171:8afae1d5d108 23172:e955549cd045
1 1
2 Test interactions between mq and patch.eol 2 Test interactions between mq and patch.eol
3 3
4 4
5 $ echo "[extensions]" >> $HGRCPATH 5 $ cat <<EOF >> $HGRCPATH
6 $ echo "mq=" >> $HGRCPATH 6 > [extensions]
7 $ echo "[diff]" >> $HGRCPATH 7 > mq =
8 $ echo "nodates=1" >> $HGRCPATH 8 > [diff]
9 > nodates = 1
10 > EOF
9 11
10 $ cat > makepatch.py <<EOF 12 $ cat > makepatch.py <<EOF
11 > f = file('eol.diff', 'wb') 13 > f = file('eol.diff', 'wb')
12 > w = f.write 14 > w = f.write
13 > w('test message\n') 15 > w('test message\n')