Mercurial > public > mercurial-scm > hg-stable
diff mercurial/help/config.txt @ 38725:c382c19ce9bd
windows: expand '~/' and '~\' to %USERPROFILE% when translating to cmd.exe
It's convenient to be able to reference hooks in a portable location on any
platform.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 16 Jul 2018 00:32:33 -0400 |
parents | 02b5b5c1bba8 |
children | 8891dc15b327 |
line wrap: on
line diff
--- a/mercurial/help/config.txt Sun Jul 15 23:58:39 2018 -0400 +++ b/mercurial/help/config.txt Mon Jul 16 00:32:33 2018 -0400 @@ -892,9 +892,11 @@ .. container:: windows 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. Strong quotes - will be replaced by double quotes after processing. + and ``${VAR}`` style variables. A ``~`` followed by ``\`` or ``/`` will + be expanded to ``%USERPROFILE%`` to simulate a subset of tilde expansion + on Unix. To use a literal ``$`` or ``~``, it must be escaped with a back + slash or inside of a strong quote. Strong quotes will be replaced by + double quotes after processing. 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::