comparison 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
comparison
equal deleted inserted replaced
23171:8afae1d5d108 23172:e955549cd045
13 > s = s.decode('string_escape') 13 > s = s.decode('string_escape')
14 > f.write(s*count) 14 > f.write(s*count)
15 > f.close() 15 > f.close()
16 > 16 >
17 > EOF 17 > EOF
18 $ echo "[extensions]" >> $HGRCPATH 18 > cat <<EOF >> $HGRCPATH
19 $ echo "mq=" >> $HGRCPATH 19 > [extensions]
20 $ echo "[diff]" >> $HGRCPATH 20 > mq =
21 $ echo "git=1" >> $HGRCPATH 21 > [diff]
22 > git = 1
23 > EOF
22 $ hg init repo 24 $ hg init repo
23 $ cd repo 25 $ cd repo
24 26
25 qimport without file or revision 27 qimport without file or revision
26 28