Mercurial > hg-stable
comparison tests/test-hook.t @ 26861:10a1a4b3e775 stable
hooks: back 9f272bf3b342 out
Changeset 9f272bf3b342 alters the 'HG_PENDING' mechanism to be "always" there.
This change is made under the assumption than we previously did it only when
"writepending() actually wrote something". This assumption was wrong,
'writepending()' informs of pending changes the first time something is written
and for all following calls. We back this change out to restore the former
behavior, which was already correct.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 06 Nov 2015 11:08:11 -0500 |
parents | e7c618cee8df |
children | a01d3d32b53a 10695f8f3323 |
comparison
equal
deleted
inserted
replaced
26859:e7c618cee8df | 26861:10a1a4b3e775 |
---|---|
111 | 111 |
112 $ cd ../b | 112 $ cd ../b |
113 $ hg pull ../a | 113 $ hg pull ../a |
114 pulling from ../a | 114 pulling from ../a |
115 searching for changes | 115 searching for changes |
116 prechangegroup hook: HG_PENDING=$TESTTMP/b HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) | 116 prechangegroup hook: HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) |
117 adding changesets | 117 adding changesets |
118 adding manifests | 118 adding manifests |
119 adding file changes | 119 adding file changes |
120 added 3 changesets with 2 changes to 2 files | 120 added 3 changesets with 2 changes to 2 files |
121 changegroup hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) | 121 changegroup hook: HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) |
270 searching for changes | 270 searching for changes |
271 listkeys hook: HG_NAMESPACE=phases HG_VALUES={'cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b': '1', 'publishing': 'True'} | 271 listkeys hook: HG_NAMESPACE=phases HG_VALUES={'cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b': '1', 'publishing': 'True'} |
272 listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} | 272 listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} |
273 no changes found | 273 no changes found |
274 pretxnopen hook: HG_TXNID=TXN:* HG_TXNNAME=push (glob) | 274 pretxnopen hook: HG_TXNID=TXN:* HG_TXNNAME=push (glob) |
275 prepushkey.forbid hook: HG_BUNDLE2=1 HG_KEY=baz HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000 HG_PENDING=$TESTTMP/a HG_SOURCE=push HG_TXNID=TXN:* HG_URL=push (glob) | 275 prepushkey.forbid hook: HG_BUNDLE2=1 HG_KEY=baz HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000 HG_SOURCE=push HG_TXNID=TXN:* HG_URL=push (glob) |
276 pushkey-abort: prepushkey hook exited with status 1 | 276 pushkey-abort: prepushkey hook exited with status 1 |
277 abort: exporting bookmark baz failed! | 277 abort: exporting bookmark baz failed! |
278 [255] | 278 [255] |
279 $ cd ../a | 279 $ cd ../a |
280 | 280 |
304 > prechangegroup.forbid = printenv.py prechangegroup.forbid 1 | 304 > prechangegroup.forbid = printenv.py prechangegroup.forbid 1 |
305 > EOF | 305 > EOF |
306 $ hg pull ../a | 306 $ hg pull ../a |
307 pulling from ../a | 307 pulling from ../a |
308 searching for changes | 308 searching for changes |
309 prechangegroup.forbid hook: HG_PENDING=$TESTTMP/b HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) | 309 prechangegroup.forbid hook: HG_SOURCE=pull HG_TXNID=TXN:* HG_URL=file:$TESTTMP/a (glob) |
310 abort: prechangegroup.forbid hook exited with status 1 | 310 abort: prechangegroup.forbid hook exited with status 1 |
311 [255] | 311 [255] |
312 | 312 |
313 pretxnchangegroup hook can see incoming changes, can roll back txn, | 313 pretxnchangegroup hook can see incoming changes, can roll back txn, |
314 incoming changes no longer there after | 314 incoming changes no longer there after |