# HG changeset patch # User Patrick Mezard # Date 1182368141 -7200 # Node ID 54b735135fd30798f959b7422321ebf1adc7d8ab # Parent c7371aa0c153af7e469e03762eb119b9f936996e Document empty environment variables not being passed to hooks under Windows. diff -r c7371aa0c153 -r 54b735135fd3 doc/hgrc.5.txt --- a/doc/hgrc.5.txt Wed Jun 20 00:10:21 2007 +0200 +++ b/doc/hgrc.5.txt Wed Jun 20 21:35:41 2007 +0200 @@ -308,6 +308,11 @@ did not have a "HG_" prefix. The old unprefixed names are no longer provided in the environment. + 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: hookname = python:modulename.submodule.callable