# HG changeset patch # User Thomas Arendsen Hein # Date 2007-04-19 11:04:26 # Node ID 97962a3e73cfe0474fe0ba466d457f9addda18de # Parent c6413f8f2f8e5b0f8c308e80a6c6dea381c590ee Work around problem where 'del os.environ["FOO"]' doesn't update environment. test-hook failed since changeset 949516072388 because of this on Solaris 8. diff --git a/tests/test-hook b/tests/test-hook --- a/tests/test-hook +++ b/tests/test-hook @@ -6,10 +6,10 @@ cp "$TESTDIR"/printenv.py . hg init a cd a echo "[hooks]" > .hg/hgrc -echo 'commit = python ../printenv.py commit' >> .hg/hgrc -echo 'commit.b = python ../printenv.py commit.b' >> .hg/hgrc -echo 'precommit = python ../printenv.py precommit' >> .hg/hgrc -echo 'pretxncommit = python ../printenv.py pretxncommit' >> .hg/hgrc +echo 'commit = unset HG_LOCAL HG_TAG; python ../printenv.py commit' >> .hg/hgrc +echo 'commit.b = unset HG_LOCAL HG_TAG; python ../printenv.py commit.b' >> .hg/hgrc +echo 'precommit = unset HG_LOCAL HG_NODE HG_TAG; python ../printenv.py precommit' >> .hg/hgrc +echo 'pretxncommit = unset HG_LOCAL HG_TAG; python ../printenv.py pretxncommit' >> .hg/hgrc echo 'pretxncommit.tip = hg -q tip' >> .hg/hgrc echo a > a hg add a @@ -41,7 +41,7 @@ hg pull ../a # tag hooks can see env vars cd ../a echo 'pretag = python ../printenv.py pretag' >> .hg/hgrc -echo 'tag = python ../printenv.py tag' >> .hg/hgrc +echo 'tag = unset HG_PARENT1 HG_PARENT2; python ../printenv.py tag' >> .hg/hgrc hg tag -d '3 0' a hg tag -l la