[PATCH 1 of 2] test-revert-interactive: don't escape the $ for $TESTTMP

Matt Harbison matt_harbison at yahoo.com
Wed May 27 16:51:22 UTC 2015


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1432743073 14400
#      Wed May 27 12:11:13 2015 -0400
# Node ID 47b7108755da3d425d6b6af0623074d404ea8e67
# Parent  6ac860f700b5cfeda232d5305963047696b869ca
test-revert-interactive: don't escape the $ for $TESTTMP

Otherwise, sh tries to exec the literal path '${TESTTMP}/editor.sh' on Windows.
The test runs clean on OS X both with and without this change.

diff --git a/tests/test-revert-interactive.t b/tests/test-revert-interactive.t
--- a/tests/test-revert-interactive.t
+++ b/tests/test-revert-interactive.t
@@ -292,7 +292,7 @@
   $ hg st
 
 4) Use interactive revert to recover f and change it on the fly
-  $ HGEDITOR="\"sh\" \"\${TESTTMP}/editor.sh\"" PRINTHUNK="YES" hg revert -i -r ".^^"  <<EOF
+  $ HGEDITOR="\"sh\" \"${TESTTMP}/editor.sh\"" PRINTHUNK="YES" hg revert -i -r ".^^"  <<EOF
   > y
   > e
   > EOF


More information about the Mercurial-devel mailing list