comparison tests/test-mq-subrepo-svn.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 1ff35d76421c
comparison
equal deleted inserted replaced
23171:8afae1d5d108 23172:e955549cd045
1 #require svn13 1 #require svn13
2 2
3 $ echo "[extensions]" >> $HGRCPATH 3 $ cat <<EOF >> $HGRCPATH
4 $ echo "mq=" >> $HGRCPATH 4 > [extensions]
5 $ echo "[diff]" >> $HGRCPATH 5 > mq =
6 $ echo "nodates=1" >> $HGRCPATH 6 > [diff]
7 > nodates = 1
8 > EOF
7 9
8 fn to create new repository, and cd into it 10 fn to create new repository, and cd into it
9 $ mkrepo() { 11 $ mkrepo() {
10 > hg init $1 12 > hg init $1
11 > cd $1 13 > cd $1