Backed out changeset 6e4b2043f10ea50b3eeb0ceb3e8776032fb8d92e

Only printenv was changed, not the actual execution of hooks.
And not setting an empty value might cause problems on platforms
which can't always remove variables from the environment.
This commit is contained in:
Thomas Arendsen Hein 2007-06-21 10:00:59 +02:00
parent 4df6409ef2
commit f1c2183cb0

View File

@ -327,9 +327,10 @@ hooks::
Also, hooks like "commit" will be called in all contexts that
generate a commit (eg. tag) and not just the commit command.
Note2: Environment variables with empty values will not be passed to
hooks. For instance, $HG_PARENT2 will not be set for non-merge
changesets.
Note2: Environment variables with empty values may not be passed to
hooks on platforms like Windows. For instance, $HG_PARENT2 will
not be available under Windows for non-merge changesets while being
set to an empty value under Unix-like systems.
The syntax for Python hooks is as follows: