comparison tests/test-status-color.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 7ebf91426f6a
children 4cb8002658d6
comparison
equal deleted inserted replaced
23171:8afae1d5d108 23172:e955549cd045
1 $ echo "[extensions]" >> $HGRCPATH 1 $ cat <<EOF >> $HGRCPATH
2 $ echo "color=" >> $HGRCPATH 2 > [extensions]
3 $ echo "[color]" >> $HGRCPATH 3 > color =
4 $ echo "mode=ansi" >> $HGRCPATH 4 > [color]
5 > mode = ansi
6 > EOF
5 Terminfo codes compatibility fix 7 Terminfo codes compatibility fix
6 $ echo "color.none=0" >> $HGRCPATH 8 $ echo "color.none=0" >> $HGRCPATH
7 9
8 $ hg init repo1 10 $ hg init repo1
9 $ cd repo1 11 $ cd repo1