Mercurial > hg
diff tests/test-mq-qimport.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 | 7a9cbb315d84 |
children | 4d2b9b304ad0 |
line wrap: on
line diff
--- a/tests/test-mq-qimport.t Tue Nov 04 10:40:06 2014 +0000 +++ b/tests/test-mq-qimport.t Tue Nov 04 23:41:46 2014 +0900 @@ -15,10 +15,12 @@ > f.close() > > EOF - $ echo "[extensions]" >> $HGRCPATH - $ echo "mq=" >> $HGRCPATH - $ echo "[diff]" >> $HGRCPATH - $ echo "git=1" >> $HGRCPATH + > cat <<EOF >> $HGRCPATH + > [extensions] + > mq = + > [diff] + > git = 1 + > EOF $ hg init repo $ cd repo