Show More
@@ -6,10 +6,10 b' cp "$TESTDIR"/printenv.py .' | |||
|
6 | 6 | hg init a |
|
7 | 7 | cd a |
|
8 | 8 | echo "[hooks]" > .hg/hgrc |
|
9 | echo 'commit = python ../printenv.py commit' >> .hg/hgrc | |
|
10 | echo 'commit.b = python ../printenv.py commit.b' >> .hg/hgrc | |
|
11 | echo 'precommit = python ../printenv.py precommit' >> .hg/hgrc | |
|
12 | echo 'pretxncommit = python ../printenv.py pretxncommit' >> .hg/hgrc | |
|
9 | echo 'commit = unset HG_LOCAL HG_TAG; python ../printenv.py commit' >> .hg/hgrc | |
|
10 | echo 'commit.b = unset HG_LOCAL HG_TAG; python ../printenv.py commit.b' >> .hg/hgrc | |
|
11 | echo 'precommit = unset HG_LOCAL HG_NODE HG_TAG; python ../printenv.py precommit' >> .hg/hgrc | |
|
12 | echo 'pretxncommit = unset HG_LOCAL HG_TAG; python ../printenv.py pretxncommit' >> .hg/hgrc | |
|
13 | 13 | echo 'pretxncommit.tip = hg -q tip' >> .hg/hgrc |
|
14 | 14 | echo a > a |
|
15 | 15 | hg add a |
@@ -41,7 +41,7 b' hg pull ../a' | |||
|
41 | 41 | # tag hooks can see env vars |
|
42 | 42 | cd ../a |
|
43 | 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 | 45 | hg tag -d '3 0' a |
|
46 | 46 | hg tag -l la |
|
47 | 47 |
General Comments 0
You need to be logged in to leave comments.
Login now