Mercurial > hg
comparison tests/test-hook.t @ 13404:31a256ffe9e5
tests: let printenv.py show the real values
Test paths are now hidden by the test framework, so HG_URL no longer needs
mangling.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 15 Feb 2011 01:05:32 +0100 |
parents | 1775382ff833 |
children | 682edefe7dbb |
comparison
equal
deleted
inserted
replaced
13403:8ed91088acbb | 13404:31a256ffe9e5 |
---|---|
76 b | 76 b |
77 post-cat hook: HG_ARGS=cat b HG_OPTS={'decode': None, 'exclude': [], 'include': [], 'output': '', 'rev': ''} HG_PATS=['b'] HG_RESULT=0 | 77 post-cat hook: HG_ARGS=cat b HG_OPTS={'decode': None, 'exclude': [], 'include': [], 'output': '', 'rev': ''} HG_PATS=['b'] HG_RESULT=0 |
78 | 78 |
79 $ cd ../b | 79 $ cd ../b |
80 $ hg pull ../a | 80 $ hg pull ../a |
81 prechangegroup hook: HG_SOURCE=pull HG_URL=file: | 81 prechangegroup hook: HG_SOURCE=pull HG_URL=file:$TESTTMP/a |
82 changegroup hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_SOURCE=pull HG_URL=file: | 82 changegroup hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_SOURCE=pull HG_URL=file:$TESTTMP/a |
83 incoming hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_SOURCE=pull HG_URL=file: | 83 incoming hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_SOURCE=pull HG_URL=file:$TESTTMP/a |
84 incoming hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_SOURCE=pull HG_URL=file: | 84 incoming hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_SOURCE=pull HG_URL=file:$TESTTMP/a |
85 incoming hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_SOURCE=pull HG_URL=file: | 85 incoming hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_SOURCE=pull HG_URL=file:$TESTTMP/a |
86 pulling from ../a | 86 pulling from ../a |
87 searching for changes | 87 searching for changes |
88 adding changesets | 88 adding changesets |
89 adding manifests | 89 adding manifests |
90 adding file changes | 90 adding file changes |
176 $ hg -q tip | 176 $ hg -q tip |
177 3:07f3376c1e65 | 177 3:07f3376c1e65 |
178 $ echo '[hooks]' > .hg/hgrc | 178 $ echo '[hooks]' > .hg/hgrc |
179 $ echo 'prechangegroup.forbid = python ../printenv.py prechangegroup.forbid 1' >> .hg/hgrc | 179 $ echo 'prechangegroup.forbid = python ../printenv.py prechangegroup.forbid 1' >> .hg/hgrc |
180 $ hg pull ../a | 180 $ hg pull ../a |
181 prechangegroup.forbid hook: HG_SOURCE=pull HG_URL=file: | 181 prechangegroup.forbid hook: HG_SOURCE=pull HG_URL=file:$TESTTMP/a |
182 pulling from ../a | 182 pulling from ../a |
183 searching for changes | 183 searching for changes |
184 abort: prechangegroup.forbid hook exited with status 1 | 184 abort: prechangegroup.forbid hook exited with status 1 |
185 [255] | 185 [255] |
186 | 186 |
190 $ echo '[hooks]' > .hg/hgrc | 190 $ echo '[hooks]' > .hg/hgrc |
191 $ echo 'pretxnchangegroup.forbid0 = hg tip -q' >> .hg/hgrc | 191 $ echo 'pretxnchangegroup.forbid0 = hg tip -q' >> .hg/hgrc |
192 $ echo 'pretxnchangegroup.forbid1 = python ../printenv.py pretxnchangegroup.forbid 1' >> .hg/hgrc | 192 $ echo 'pretxnchangegroup.forbid1 = python ../printenv.py pretxnchangegroup.forbid 1' >> .hg/hgrc |
193 $ hg pull ../a | 193 $ hg pull ../a |
194 4:539e4b31b6dc | 194 4:539e4b31b6dc |
195 pretxnchangegroup.forbid hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$TESTTMP/b HG_SOURCE=pull HG_URL=file: | 195 pretxnchangegroup.forbid hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$TESTTMP/b HG_SOURCE=pull HG_URL=file:$TESTTMP/a |
196 pulling from ../a | 196 pulling from ../a |
197 searching for changes | 197 searching for changes |
198 adding changesets | 198 adding changesets |
199 adding manifests | 199 adding manifests |
200 adding file changes | 200 adding file changes |