changeset 23390:6a3e38a173ec

tests: choose the proper environment variable style for the platform Windows was printing out 'commit $HG_NODE' instead of the actual hash.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 20 Nov 2014 22:33:40 -0500
parents ce209c9d0aad
children d8cdd46f426d
files tests/test-histedit-fold.t
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-histedit-fold.t	Thu Nov 20 20:07:34 2014 -0500
+++ b/tests/test-histedit-fold.t	Thu Nov 20 22:33:40 2014 -0500
@@ -470,7 +470,14 @@
   1:199b6bb90248 b
   0:6c795aa153cb a
 
-  $ hg histedit 6c795aa153cb --config hooks.commit="echo commit \$HG_NODE" --commands - 2>&1 << EOF | fixbundle
+Setup the proper environment variable symbol for the platform, to be subbed
+into the hook command.
+#if windows
+  $ NODE="%HG_NODE%"
+#else
+  $ NODE="\$HG_NODE"
+#endif
+  $ hg histedit 6c795aa153cb --config hooks.commit="echo commit $NODE" --commands - 2>&1 << EOF | fixbundle
   > pick 199b6bb90248 b
   > fold a1a953ffb4b0 c
   > pick 6c795aa153cb a