Mercurial > hg > mercurial
changeset 495:7d3527fe4556 Faradi-7.1.x
Pass parent process environment when run mercurial
Otherwise some commands don't work. E.g. 'hg identify' fails with the
error 'Invalid Signature' somewhere inside random.pyc when trying to
import module tempfiles, because of the lack of SystemRoot environment
variable. More details here:
http://mail.python.org/pipermail/python-bugs-list/2011-December/154012.html
http://jpassing.com/2009/12/28/the-hidden-danger-of-forgetting-to-specify-systemroot-in-a-custom-environment-block/
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Wed, 24 Oct 2012 16:46:18 +0400 |
parents | 236d0866a45f |
children | e4210c35aa24 ed098534dab4 |
files | mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/BaseCommand.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/BaseCommand.java Tue Oct 23 13:44:38 2012 +0400 +++ b/mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/BaseCommand.java Wed Oct 24 16:46:18 2012 +0400 @@ -47,7 +47,6 @@ protected MercurialCommandLine createCommandLine() { MercurialCommandLine cli = createCL(); cli.setWorkDirectory(myWorkDirectory.getAbsolutePath()); - cli.setPassParentEnvs(true); return cli; } @@ -55,6 +54,7 @@ MercurialCommandLine cl = new MercurialCommandLine(getPrivateData()); cl.setExePath(myHgPath); cl.setEnvParams(myCommandSettings.getHgEnv()); + cl.setPassParentEnvs(true); return cl; }