diff mercurial/help/config.txt @ 38722:2009d84f245a

hook: disable the shell to native command translation by default There are other things I want to add like ~ expansion and translating single to double quotes for cmd.exe. So off by default is safer. I'm having second thoughts about the name, but I don't have any better ideas.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 15 Jul 2018 23:46:09 -0400
parents 38dfd308fe9d
children 02b5b5c1bba8
line wrap: on
line diff
--- a/mercurial/help/config.txt	Mon Jul 16 17:47:58 2018 -0700
+++ b/mercurial/help/config.txt	Sun Jul 15 23:46:09 2018 -0400
@@ -891,16 +891,17 @@
 
 .. container:: windows
 
-  Some basic Unix syntax is supported for portability, including ``$VAR``
+  Some basic Unix syntax can be enabled for portability, including ``$VAR``
   and ``${VAR}`` style variables.  To use a literal ``$``, it must be
-  escaped with a back slash or inside of a strong quote.  This can be
-  disabled by adding a prefix of ``tonative.`` to the hook name on a new
-  line, and setting it to ``False``.  For example::
+  escaped with a back slash or inside of a strong quote.
+
+  This feature is enabled by adding a prefix of ``tonative.`` to the hook
+  name on a new line, and setting it to ``True``.  For example::
 
     [hooks]
     incoming.autobuild = /my/build/hook
-    # disable translation to cmd.exe syntax for autobuild hook
-    tonative.incoming.autobuild = False
+    # enable translation to cmd.exe syntax for autobuild hook
+    tonative.incoming.autobuild = True
 
 ``changegroup``
   Run after a changegroup has been added via push, pull or unbundle.  The ID of