tests: write the hgrc file for test-hgweb-commands.t with cat instead of echo
To improve the readability.
--- a/tests/test-hgweb-commands.t Sat May 17 17:09:10 2014 +0800
+++ b/tests/test-hgweb-commands.t Sat May 17 17:09:46 2014 +0800
@@ -31,10 +31,13 @@
$ hg ci -l msg
$ rm msg
- $ echo [graph] >> .hg/hgrc
- $ echo default.width = 3 >> .hg/hgrc
- $ echo stable.width = 3 >> .hg/hgrc
- $ echo stable.color = FF0000 >> .hg/hgrc
+ $ cat > .hg/hgrc <<EOF
+ > [graph]
+ > default.width = 3
+ > stable.width = 3
+ > stable.color = FF0000
+ > EOF
+
$ hg serve --config server.uncompressed=False -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
$ cat hg.pid >> $DAEMON_PIDS
$ hg log -G --template '{rev}:{node|short} {desc}\n'