comparison tests/test-mq-header-date.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 aac5482db318
children e63941631a3f
comparison
equal deleted inserted replaced
23171:8afae1d5d108 23172:e955549cd045
1 1
2 $ echo "[extensions]" >> $HGRCPATH 2 $ cat <<EOF >> $HGRCPATH
3 $ echo "mq=" >> $HGRCPATH 3 > [extensions]
4 $ echo "[diff]" >> $HGRCPATH 4 > mq =
5 $ echo "nodates=true" >> $HGRCPATH 5 > [diff]
6 > nodates = true
7 > EOF
6 $ catpatch() { 8 $ catpatch() {
7 > cat .hg/patches/$1.patch | sed -e "s/^diff \-r [0-9a-f]* /diff -r ... /" \ 9 > cat .hg/patches/$1.patch | sed -e "s/^diff \-r [0-9a-f]* /diff -r ... /" \
8 > -e "s/^\(# Parent \).*/\1/" 10 > -e "s/^\(# Parent \).*/\1/"
9 > } 11 > }
10 $ catlog() { 12 $ catlog() {