changeset 5686:5d14d71148b8

Switch to using cat with EOF doc instead of trying to quote newlines for echo.
author Lee Cantey <lcantey@gmail.com>
date Fri, 21 Dec 2007 14:26:20 -0800
parents 57d29a45ffbc
children ca7af19debea
files tests/test-mq-pull-from-bundle
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-mq-pull-from-bundle	Fri Dec 21 21:50:19 2007 +0100
+++ b/tests/test-mq-pull-from-bundle	Fri Dec 21 14:26:20 2007 -0800
@@ -1,11 +1,13 @@
 #!/bin/sh
 
-echo "[extensions]" >> $HGRCPATH
-echo "mq=" >> $HGRCPATH
-echo "[defaults]" >> $HGRCPATH
-echo "log = --template \"{rev}: {desc}\\n\"" >> $HGRCPATH
-echo "heads = --template \"{rev}: {desc}\\n\"" >> $HGRCPATH
-echo "incoming = --template \"{rev}: {desc}\\n\"" >> $HGRCPATH
+cat <<EOF >> $HGRCPATH
+[extensions]
+mq=
+[defaults]
+log = --template "{rev}: {desc}\\n"
+heads = --template "{rev}: {desc}\\n"
+incoming = --template "{rev}: {desc}\\n"
+EOF
 
 echo "====== .hgrc"
 cat $HGRCPATH