comparison tests/test-shelve.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 fab9dda0f2a3
children 4f18e80d9c30
comparison
equal deleted inserted replaced
23171:8afae1d5d108 23172:e955549cd045
1 $ echo "[extensions]" >> $HGRCPATH 1 $ cat <<EOF >> $HGRCPATH
2 $ echo "mq=" >> $HGRCPATH 2 > [extensions]
3 $ echo "shelve=" >> $HGRCPATH 3 > mq =
4 $ echo "[defaults]" >> $HGRCPATH 4 > shelve =
5 $ echo "diff = --nodates --git" >> $HGRCPATH 5 > [defaults]
6 $ echo "qnew = --date '0 0'" >> $HGRCPATH 6 > diff = --nodates --git
7 > qnew = --date '0 0'
8 > EOF
7 9
8 $ hg init repo 10 $ hg init repo
9 $ cd repo 11 $ cd repo
10 $ mkdir a b 12 $ mkdir a b
11 $ echo a > a/a 13 $ echo a > a/a