comparison tests/test-convert-clonebranches.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 687ed69f6fdf
children 701df761aa94
comparison
equal deleted inserted replaced
23171:8afae1d5d108 23172:e955549cd045
1 1
2 $ echo "[extensions]" >> $HGRCPATH 2 $ cat <<EOF >> $HGRCPATH
3 $ echo "convert = " >> $HGRCPATH 3 > [extensions]
4 $ echo "[convert]" >> $HGRCPATH 4 > convert =
5 $ echo "hg.tagsbranch=0" >> $HGRCPATH 5 > [convert]
6 > hg.tagsbranch = 0
7 > EOF
6 $ hg init source 8 $ hg init source
7 $ cd source 9 $ cd source
8 $ echo a > a 10 $ echo a > a
9 $ hg ci -qAm adda 11 $ hg ci -qAm adda
10 12