Mercurial > hg
comparison tests/test-hook.t @ 31741:728d37353e1e
run-tests: auto-replace 'TXNID' output
Hooks related to the transaction are aware of the transaction id. By definition
this txn-id is unique and different for each transaction. As a result it can
never be predicted in test and always needs matching. As a result, touching any
like with this data is annoying. We solve the problem once and for all by
installing an automatic replacement. In test, this will now show as:
TXNID=TXN:$ID$
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Thu, 30 Mar 2017 17:29:03 +0200 |
parents | 59e69ed81776 |
children | f610c3220eec |
comparison
equal
deleted
inserted
replaced
31740:a40e979b9d97 | 31741:728d37353e1e |
---|---|
28 > EOF | 28 > EOF |
29 $ echo a > a | 29 $ echo a > a |
30 $ hg add a | 30 $ hg add a |
31 $ hg commit -m a | 31 $ hg commit -m a |
32 precommit hook: HG_PARENT1=0000000000000000000000000000000000000000 | 32 precommit hook: HG_PARENT1=0000000000000000000000000000000000000000 |
33 pretxnopen hook: HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 33 pretxnopen hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
34 pretxncommit hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 HG_PENDING=$TESTTMP/a | 34 pretxncommit hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 HG_PENDING=$TESTTMP/a |
35 0:cb9a9f314b8b | 35 0:cb9a9f314b8b |
36 pretxnclose hook: HG_PENDING=$TESTTMP/a HG_PHASES_MOVED=1 HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 36 pretxnclose hook: HG_PENDING=$TESTTMP/a HG_PHASES_MOVED=1 HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
37 txnclose hook: HG_PHASES_MOVED=1 HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 37 txnclose hook: HG_PHASES_MOVED=1 HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
38 commit hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 | 38 commit hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 |
39 commit.b hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 | 39 commit.b hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 |
40 | 40 |
41 $ hg clone . ../b | 41 $ hg clone . ../b |
42 updating to branch default | 42 updating to branch default |
56 | 56 |
57 $ cd ../a | 57 $ cd ../a |
58 $ echo b >> a | 58 $ echo b >> a |
59 $ hg commit -m a1 -d "1 0" | 59 $ hg commit -m a1 -d "1 0" |
60 precommit hook: HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b | 60 precommit hook: HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b |
61 pretxnopen hook: HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 61 pretxnopen hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
62 pretxncommit hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PENDING=$TESTTMP/a | 62 pretxncommit hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PENDING=$TESTTMP/a |
63 1:ab228980c14d | 63 1:ab228980c14d |
64 pretxnclose hook: HG_PENDING=$TESTTMP/a HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 64 pretxnclose hook: HG_PENDING=$TESTTMP/a HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
65 txnclose hook: HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 65 txnclose hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
66 commit hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b | 66 commit hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b |
67 commit.b hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b | 67 commit.b hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b |
68 $ hg update -C 0 | 68 $ hg update -C 0 |
69 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 69 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
70 $ echo b > b | 70 $ echo b > b |
71 $ hg add b | 71 $ hg add b |
72 $ hg commit -m b -d '1 0' | 72 $ hg commit -m b -d '1 0' |
73 precommit hook: HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b | 73 precommit hook: HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b |
74 pretxnopen hook: HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 74 pretxnopen hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
75 pretxncommit hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PENDING=$TESTTMP/a | 75 pretxncommit hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PENDING=$TESTTMP/a |
76 2:ee9deb46ab31 | 76 2:ee9deb46ab31 |
77 pretxnclose hook: HG_PENDING=$TESTTMP/a HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 77 pretxnclose hook: HG_PENDING=$TESTTMP/a HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
78 created new head | 78 created new head |
79 txnclose hook: HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 79 txnclose hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
80 commit hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b | 80 commit hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b |
81 commit.b hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b | 81 commit.b hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT1=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b |
82 $ hg merge 1 | 82 $ hg merge 1 |
83 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 83 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
84 (branch merge, don't forget to commit) | 84 (branch merge, don't forget to commit) |
85 $ hg commit -m merge -d '2 0' | 85 $ hg commit -m merge -d '2 0' |
86 precommit hook: HG_PARENT1=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT2=ab228980c14deea8b9555d91c9581127383e40fd | 86 precommit hook: HG_PARENT1=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT2=ab228980c14deea8b9555d91c9581127383e40fd |
87 pretxnopen hook: HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 87 pretxnopen hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
88 pretxncommit hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PARENT1=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT2=ab228980c14deea8b9555d91c9581127383e40fd HG_PENDING=$TESTTMP/a | 88 pretxncommit hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PARENT1=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT2=ab228980c14deea8b9555d91c9581127383e40fd HG_PENDING=$TESTTMP/a |
89 3:07f3376c1e65 | 89 3:07f3376c1e65 |
90 pretxnclose hook: HG_PENDING=$TESTTMP/a HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 90 pretxnclose hook: HG_PENDING=$TESTTMP/a HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
91 txnclose hook: HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 91 txnclose hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
92 commit hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PARENT1=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT2=ab228980c14deea8b9555d91c9581127383e40fd | 92 commit hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PARENT1=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT2=ab228980c14deea8b9555d91c9581127383e40fd |
93 commit.b hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PARENT1=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT2=ab228980c14deea8b9555d91c9581127383e40fd | 93 commit.b hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PARENT1=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_PARENT2=ab228980c14deea8b9555d91c9581127383e40fd |
94 | 94 |
95 test generic hooks | 95 test generic hooks |
96 | 96 |
105 | 105 |
106 $ cd ../b | 106 $ cd ../b |
107 $ hg pull ../a | 107 $ hg pull ../a |
108 pulling from ../a | 108 pulling from ../a |
109 searching for changes | 109 searching for changes |
110 prechangegroup hook: HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) | 110 prechangegroup hook: HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=file:$TESTTMP/a |
111 adding changesets | 111 adding changesets |
112 adding manifests | 112 adding manifests |
113 adding file changes | 113 adding file changes |
114 added 3 changesets with 2 changes to 2 files | 114 added 3 changesets with 2 changes to 2 files |
115 changegroup hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_NODE_LAST=07f3376c1e655977439df2a814e3cc14b27abac2 HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) | 115 changegroup hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_NODE_LAST=07f3376c1e655977439df2a814e3cc14b27abac2 HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=file:$TESTTMP/a |
116 incoming hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) | 116 incoming hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=file:$TESTTMP/a |
117 incoming hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) | 117 incoming hook: HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2 HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=file:$TESTTMP/a |
118 incoming hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) | 118 incoming hook: HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=file:$TESTTMP/a |
119 (run 'hg update' to get a working copy) | 119 (run 'hg update' to get a working copy) |
120 | 120 |
121 tag hooks can see env vars | 121 tag hooks can see env vars |
122 | 122 |
123 $ cd ../a | 123 $ cd ../a |
126 > tag = sh -c "HG_PARENT1= HG_PARENT2= printenv.py tag" | 126 > tag = sh -c "HG_PARENT1= HG_PARENT2= printenv.py tag" |
127 > EOF | 127 > EOF |
128 $ hg tag -d '3 0' a | 128 $ hg tag -d '3 0' a |
129 pretag hook: HG_LOCAL=0 HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_TAG=a | 129 pretag hook: HG_LOCAL=0 HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_TAG=a |
130 precommit hook: HG_PARENT1=07f3376c1e655977439df2a814e3cc14b27abac2 | 130 precommit hook: HG_PARENT1=07f3376c1e655977439df2a814e3cc14b27abac2 |
131 pretxnopen hook: HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 131 pretxnopen hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
132 pretxncommit hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PARENT1=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PENDING=$TESTTMP/a | 132 pretxncommit hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PARENT1=07f3376c1e655977439df2a814e3cc14b27abac2 HG_PENDING=$TESTTMP/a |
133 4:539e4b31b6dc | 133 4:539e4b31b6dc |
134 pretxnclose hook: HG_PENDING=$TESTTMP/a HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 134 pretxnclose hook: HG_PENDING=$TESTTMP/a HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
135 tag hook: HG_LOCAL=0 HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_TAG=a | 135 tag hook: HG_LOCAL=0 HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2 HG_TAG=a |
136 txnclose hook: HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 136 txnclose hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
137 commit hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PARENT1=07f3376c1e655977439df2a814e3cc14b27abac2 | 137 commit hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PARENT1=07f3376c1e655977439df2a814e3cc14b27abac2 |
138 commit.b hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PARENT1=07f3376c1e655977439df2a814e3cc14b27abac2 | 138 commit.b hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PARENT1=07f3376c1e655977439df2a814e3cc14b27abac2 |
139 $ hg tag -l la | 139 $ hg tag -l la |
140 pretag hook: HG_LOCAL=1 HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_TAG=la | 140 pretag hook: HG_LOCAL=1 HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_TAG=la |
141 tag hook: HG_LOCAL=1 HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_TAG=la | 141 tag hook: HG_LOCAL=1 HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_TAG=la |
167 $ hg add z | 167 $ hg add z |
168 $ hg -q tip | 168 $ hg -q tip |
169 4:539e4b31b6dc | 169 4:539e4b31b6dc |
170 $ hg commit -m 'fail' -d '4 0' | 170 $ hg commit -m 'fail' -d '4 0' |
171 precommit hook: HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 | 171 precommit hook: HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 |
172 pretxnopen hook: HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 172 pretxnopen hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
173 pretxncommit hook: HG_NODE=6f611f8018c10e827fee6bd2bc807f937e761567 HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$TESTTMP/a | 173 pretxncommit hook: HG_NODE=6f611f8018c10e827fee6bd2bc807f937e761567 HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$TESTTMP/a |
174 5:6f611f8018c1 | 174 5:6f611f8018c1 |
175 5:6f611f8018c1 | 175 5:6f611f8018c1 |
176 pretxncommit.forbid hook: HG_NODE=6f611f8018c10e827fee6bd2bc807f937e761567 HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$TESTTMP/a | 176 pretxncommit.forbid hook: HG_NODE=6f611f8018c10e827fee6bd2bc807f937e761567 HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$TESTTMP/a |
177 transaction abort! | 177 transaction abort! |
178 txnabort python hook: txnid,txnname | 178 txnabort python hook: txnid,txnname |
179 txnabort hook: HG_TXNID=TXN:* HG_TXNNAME=commit (glob) | 179 txnabort hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
180 rollback completed | 180 rollback completed |
181 abort: pretxncommit.forbid1 hook exited with status 1 | 181 abort: pretxncommit.forbid1 hook exited with status 1 |
182 [255] | 182 [255] |
183 $ hg -q tip | 183 $ hg -q tip |
184 4:539e4b31b6dc | 184 4:539e4b31b6dc |
239 $ hg bookmark -r null foo | 239 $ hg bookmark -r null foo |
240 $ hg push -B foo ../a | 240 $ hg push -B foo ../a |
241 pushing to ../a | 241 pushing to ../a |
242 searching for changes | 242 searching for changes |
243 no changes found | 243 no changes found |
244 pretxnopen hook: HG_TXNID=TXN:* HG_TXNNAME=push (glob) | 244 pretxnopen hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=push |
245 pretxnclose hook: HG_BOOKMARK_MOVED=1 HG_BUNDLE2=1 HG_PENDING=$TESTTMP/a HG_SOURCE=push HG_TXNID=TXN:* HG_TXNNAME=push HG_URL=file:$TESTTMP/a (glob) | 245 pretxnclose hook: HG_BOOKMARK_MOVED=1 HG_BUNDLE2=1 HG_PENDING=$TESTTMP/a HG_SOURCE=push HG_TXNID=TXN:$ID$ HG_TXNNAME=push HG_URL=file:$TESTTMP/a |
246 pushkey hook: HG_KEY=foo HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000 HG_RET=1 | 246 pushkey hook: HG_KEY=foo HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000 HG_RET=1 |
247 txnclose hook: HG_BOOKMARK_MOVED=1 HG_BUNDLE2=1 HG_SOURCE=push HG_TXNID=TXN:* HG_TXNNAME=push HG_URL=file:$TESTTMP/a (glob) | 247 txnclose hook: HG_BOOKMARK_MOVED=1 HG_BUNDLE2=1 HG_SOURCE=push HG_TXNID=TXN:$ID$ HG_TXNNAME=push HG_URL=file:$TESTTMP/a |
248 exporting bookmark foo | 248 exporting bookmark foo |
249 [1] | 249 [1] |
250 $ cd ../a | 250 $ cd ../a |
251 | 251 |
252 listkeys hook | 252 listkeys hook |
253 | 253 |
254 $ cat >> .hg/hgrc <<EOF | 254 $ cat >> .hg/hgrc <<EOF |
255 > listkeys = sh -c "printenv.py listkeys" | 255 > listkeys = sh -c "printenv.py listkeys" |
256 > EOF | 256 > EOF |
257 $ hg bookmark -r null bar | 257 $ hg bookmark -r null bar |
258 pretxnopen hook: HG_TXNID=TXN:* HG_TXNNAME=bookmark (glob) | 258 pretxnopen hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=bookmark |
259 pretxnclose hook: HG_BOOKMARK_MOVED=1 HG_PENDING=$TESTTMP/a HG_TXNID=TXN:* HG_TXNNAME=bookmark (glob) | 259 pretxnclose hook: HG_BOOKMARK_MOVED=1 HG_PENDING=$TESTTMP/a HG_TXNID=TXN:$ID$ HG_TXNNAME=bookmark |
260 txnclose hook: HG_BOOKMARK_MOVED=1 HG_TXNID=TXN:* HG_TXNNAME=bookmark (glob) | 260 txnclose hook: HG_BOOKMARK_MOVED=1 HG_TXNID=TXN:$ID$ HG_TXNNAME=bookmark |
261 $ cd ../b | 261 $ cd ../b |
262 $ hg pull -B bar ../a | 262 $ hg pull -B bar ../a |
263 pulling from ../a | 263 pulling from ../a |
264 listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} | 264 listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} |
265 no changes found | 265 no changes found |
278 pushing to ../a | 278 pushing to ../a |
279 searching for changes | 279 searching for changes |
280 listkeys hook: HG_NAMESPACE=phases HG_VALUES={'cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b': '1', 'publishing': 'True'} | 280 listkeys hook: HG_NAMESPACE=phases HG_VALUES={'cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b': '1', 'publishing': 'True'} |
281 listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} | 281 listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} |
282 no changes found | 282 no changes found |
283 pretxnopen hook: HG_TXNID=TXN:* HG_TXNNAME=push (glob) | 283 pretxnopen hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=push |
284 prepushkey.forbid hook: HG_BUNDLE2=1 HG_KEY=baz HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000 HG_SOURCE=push HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) | 284 prepushkey.forbid hook: HG_BUNDLE2=1 HG_KEY=baz HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000 HG_SOURCE=push HG_TXNID=TXN:$ID$ HG_URL=file:$TESTTMP/a |
285 pushkey-abort: prepushkey hook exited with status 1 | 285 pushkey-abort: prepushkey hook exited with status 1 |
286 abort: exporting bookmark baz failed! | 286 abort: exporting bookmark baz failed! |
287 [255] | 287 [255] |
288 $ cd ../a | 288 $ cd ../a |
289 | 289 |
291 | 291 |
292 $ cat >> .hg/hgrc <<EOF | 292 $ cat >> .hg/hgrc <<EOF |
293 > prelistkeys = sh -c "printenv.py prelistkeys.forbid 1" | 293 > prelistkeys = sh -c "printenv.py prelistkeys.forbid 1" |
294 > EOF | 294 > EOF |
295 $ hg bookmark -r null quux | 295 $ hg bookmark -r null quux |
296 pretxnopen hook: HG_TXNID=TXN:* HG_TXNNAME=bookmark (glob) | 296 pretxnopen hook: HG_TXNID=TXN:$ID$ HG_TXNNAME=bookmark |
297 pretxnclose hook: HG_BOOKMARK_MOVED=1 HG_PENDING=$TESTTMP/a HG_TXNID=TXN:* HG_TXNNAME=bookmark (glob) | 297 pretxnclose hook: HG_BOOKMARK_MOVED=1 HG_PENDING=$TESTTMP/a HG_TXNID=TXN:$ID$ HG_TXNNAME=bookmark |
298 txnclose hook: HG_BOOKMARK_MOVED=1 HG_TXNID=TXN:* HG_TXNNAME=bookmark (glob) | 298 txnclose hook: HG_BOOKMARK_MOVED=1 HG_TXNID=TXN:$ID$ HG_TXNNAME=bookmark |
299 $ cd ../b | 299 $ cd ../b |
300 $ hg pull -B quux ../a | 300 $ hg pull -B quux ../a |
301 pulling from ../a | 301 pulling from ../a |
302 prelistkeys.forbid hook: HG_NAMESPACE=bookmarks | 302 prelistkeys.forbid hook: HG_NAMESPACE=bookmarks |
303 abort: prelistkeys hook exited with status 1 | 303 abort: prelistkeys hook exited with status 1 |
315 > prechangegroup.forbid = sh -c "printenv.py prechangegroup.forbid 1" | 315 > prechangegroup.forbid = sh -c "printenv.py prechangegroup.forbid 1" |
316 > EOF | 316 > EOF |
317 $ hg pull ../a | 317 $ hg pull ../a |
318 pulling from ../a | 318 pulling from ../a |
319 searching for changes | 319 searching for changes |
320 prechangegroup.forbid hook: HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) | 320 prechangegroup.forbid hook: HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=file:$TESTTMP/a |
321 abort: prechangegroup.forbid hook exited with status 1 | 321 abort: prechangegroup.forbid hook exited with status 1 |
322 [255] | 322 [255] |
323 | 323 |
324 pretxnchangegroup hook can see incoming changes, can roll back txn, | 324 pretxnchangegroup hook can see incoming changes, can roll back txn, |
325 incoming changes no longer there after | 325 incoming changes no longer there after |
335 adding changesets | 335 adding changesets |
336 adding manifests | 336 adding manifests |
337 adding file changes | 337 adding file changes |
338 added 1 changesets with 1 changes to 1 files | 338 added 1 changesets with 1 changes to 1 files |
339 4:539e4b31b6dc | 339 4:539e4b31b6dc |
340 pretxnchangegroup.forbid hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_NODE_LAST=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$TESTTMP/b HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) | 340 pretxnchangegroup.forbid hook: HG_NODE=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_NODE_LAST=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$TESTTMP/b HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=file:$TESTTMP/a |
341 transaction abort! | 341 transaction abort! |
342 rollback completed | 342 rollback completed |
343 abort: pretxnchangegroup.forbid1 hook exited with status 1 | 343 abort: pretxnchangegroup.forbid1 hook exited with status 1 |
344 [255] | 344 [255] |
345 $ hg -q tip | 345 $ hg -q tip |