Mercurial > hg
comparison mercurial/help/config.txt @ 38629:38dfd308fe9d
hook: add support for disabling the shell to native command translation
I think having it on by default is the right thing to do, but this is an escape
hatch if someone has a command that shouldn't be mangled. The inspiration is
the priority prefix. The translation does nothing on non Windows platforms, so
the default value is selected to avoid printing a useless note by default.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 07 Jul 2018 23:38:06 -0400 |
parents | a936d1368fc5 |
children | 2009d84f245a |
comparison
equal
deleted
inserted
replaced
38628:539f9708b980 | 38629:38dfd308fe9d |
---|---|
891 | 891 |
892 .. container:: windows | 892 .. container:: windows |
893 | 893 |
894 Some basic Unix syntax is supported for portability, including ``$VAR`` | 894 Some basic Unix syntax is supported for portability, including ``$VAR`` |
895 and ``${VAR}`` style variables. To use a literal ``$``, it must be | 895 and ``${VAR}`` style variables. To use a literal ``$``, it must be |
896 escaped with a back slash or inside of a strong quote. | 896 escaped with a back slash or inside of a strong quote. This can be |
897 disabled by adding a prefix of ``tonative.`` to the hook name on a new | |
898 line, and setting it to ``False``. For example:: | |
899 | |
900 [hooks] | |
901 incoming.autobuild = /my/build/hook | |
902 # disable translation to cmd.exe syntax for autobuild hook | |
903 tonative.incoming.autobuild = False | |
897 | 904 |
898 ``changegroup`` | 905 ``changegroup`` |
899 Run after a changegroup has been added via push, pull or unbundle. The ID of | 906 Run after a changegroup has been added via push, pull or unbundle. The ID of |
900 the first new changeset is in ``$HG_NODE`` and last is in ``$HG_NODE_LAST``. | 907 the first new changeset is in ``$HG_NODE`` and last is in ``$HG_NODE_LAST``. |
901 The URL from which changes came is in ``$HG_URL``. | 908 The URL from which changes came is in ``$HG_URL``. |