Mercurial > hg
comparison tests/test-mq-subrepo.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 | 9ab18a912c44 |
children | bbe56e07e07a |
comparison
equal
deleted
inserted
replaced
23171:8afae1d5d108 | 23172:e955549cd045 |
---|---|
1 $ echo "[ui]" >> $HGRCPATH | 1 $ cat <<EOF >> $HGRCPATH |
2 $ echo "commitsubrepos = Yes" >> $HGRCPATH | 2 > [ui] |
3 $ echo "[extensions]" >> $HGRCPATH | 3 > commitsubrepos = Yes |
4 $ echo "mq=" >> $HGRCPATH | 4 > [extensions] |
5 $ echo "record=" >> $HGRCPATH | 5 > mq = |
6 $ echo "[diff]" >> $HGRCPATH | 6 > record = |
7 $ echo "nodates=1" >> $HGRCPATH | 7 > [diff] |
8 > nodates = 1 | |
9 > EOF | |
8 | 10 |
9 $ stdin=`pwd`/stdin.tmp | 11 $ stdin=`pwd`/stdin.tmp |
10 | 12 |
11 fn to create new repository w/dirty subrepo, and cd into it | 13 fn to create new repository w/dirty subrepo, and cd into it |
12 $ mkrepo() { | 14 $ mkrepo() { |