I am trying to call a shell script that sets a bunch of environment variables on our server from a mercurial hook. The shell script gets called fine when a new changegroup comes in, but the environment variables aren't carrying over past the call to the shell script.
My hgrc file on the respository looks like this:
[hooks]
changegroup = shell_script
changegroup.env = env
I can see the output of the shell script, and then the output of the env command, but the env command doesn't include the new environment variables set by the shell script.
I have verified that the shell script works fine when run by itself but when run in the context of the mercurial hook it does not properly set the environment.