##// END OF EJS Templates
Work around problem where 'del os.environ["FOO"]' doesn't update environment....
Thomas Arendsen Hein -
r4368:97962a3e default
parent child Browse files
Show More
@@ -6,10 +6,10 b' cp "$TESTDIR"/printenv.py .'
6 hg init a
6 hg init a
7 cd a
7 cd a
8 echo "[hooks]" > .hg/hgrc
8 echo "[hooks]" > .hg/hgrc
9 echo 'commit = python ../printenv.py commit' >> .hg/hgrc
9 echo 'commit = unset HG_LOCAL HG_TAG; python ../printenv.py commit' >> .hg/hgrc
10 echo 'commit.b = python ../printenv.py commit.b' >> .hg/hgrc
10 echo 'commit.b = unset HG_LOCAL HG_TAG; python ../printenv.py commit.b' >> .hg/hgrc
11 echo 'precommit = python ../printenv.py precommit' >> .hg/hgrc
11 echo 'precommit = unset HG_LOCAL HG_NODE HG_TAG; python ../printenv.py precommit' >> .hg/hgrc
12 echo 'pretxncommit = python ../printenv.py pretxncommit' >> .hg/hgrc
12 echo 'pretxncommit = unset HG_LOCAL HG_TAG; python ../printenv.py pretxncommit' >> .hg/hgrc
13 echo 'pretxncommit.tip = hg -q tip' >> .hg/hgrc
13 echo 'pretxncommit.tip = hg -q tip' >> .hg/hgrc
14 echo a > a
14 echo a > a
15 hg add a
15 hg add a
@@ -41,7 +41,7 b' hg pull ../a'
41 # tag hooks can see env vars
41 # tag hooks can see env vars
42 cd ../a
42 cd ../a
43 echo 'pretag = python ../printenv.py pretag' >> .hg/hgrc
43 echo 'pretag = python ../printenv.py pretag' >> .hg/hgrc
44 echo 'tag = python ../printenv.py tag' >> .hg/hgrc
44 echo 'tag = unset HG_PARENT1 HG_PARENT2; python ../printenv.py tag' >> .hg/hgrc
45 hg tag -d '3 0' a
45 hg tag -d '3 0' a
46 hg tag -l la
46 hg tag -l la
47
47
General Comments 0
You need to be logged in to leave comments. Login now