changeset 5272:1227553f82c6

tests: don't assume that echo will unescape \\
author Joerg Sonnenberger <joerg@bec.de>
date Thu, 09 Apr 2020 20:02:32 +0200
parents 6a4a65edecdc
children aca826b5bd4d
files tests/testlib/push-checkheads-util.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/testlib/push-checkheads-util.sh	Thu Apr 09 19:52:30 2020 +0200
+++ b/tests/testlib/push-checkheads-util.sh	Thu Apr 09 20:02:32 2020 +0200
@@ -34,6 +34,6 @@
 
         echo >> "client/.hg/hgrc" "[ui]"
         echo >> "client/.hg/hgrc" "# simpler log output"
-        echo >> "client/.hg/hgrc" 'logtemplate = "{node|short} [{branch}{if(topic, ":{topic}")}] ({phase}): {desc}\\n"'
+        printf >> "client/.hg/hgrc" "%s" 'logtemplate = "{node|short} [{branch}{if(topic, ":{topic}")}] ({phase}): {desc}\n"'
     fi
 }