Mercurial > hg
comparison tests/test-hook.t @ 24739:ea0d5c8e047f
transaction: actually use tr.hookargs in pretxnclose
The 'tr.hookargs' is a dictionary containing all the arguments to be passed to
hooks. It is actually used for hooks now...
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 14 Apr 2015 13:07:41 -0400 |
parents | ff14b26fe5f4 |
children | d283517b260b |
comparison
equal
deleted
inserted
replaced
24738:457e26da029b | 24739:ea0d5c8e047f |
---|---|
21 $ hg commit -m a | 21 $ hg commit -m a |
22 precommit hook: HG_PARENT1=0000000000000000000000000000000000000000 | 22 precommit hook: HG_PARENT1=0000000000000000000000000000000000000000 |
23 pretxnopen hook: HG_TXNNAME=commit | 23 pretxnopen hook: HG_TXNNAME=commit |
24 pretxncommit hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 HG_PENDING=$TESTTMP/a | 24 pretxncommit hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 HG_PENDING=$TESTTMP/a |
25 0:cb9a9f314b8b | 25 0:cb9a9f314b8b |
26 pretxnclose hook: HG_PENDING=$TESTTMP/a HG_XNNAME=commit | 26 pretxnclose hook: HG_PENDING=$TESTTMP/a HG_PHASES_MOVED=1 HG_XNNAME=commit |
27 txnclose hook: HG_PHASES_MOVED=1 HG_TXNNAME=commit | 27 txnclose hook: HG_PHASES_MOVED=1 HG_TXNNAME=commit |
28 commit hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 | 28 commit hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 |
29 commit.b hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 | 29 commit.b hook: HG_NODE=cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b HG_PARENT1=0000000000000000000000000000000000000000 |
30 | 30 |
31 $ hg clone . ../b | 31 $ hg clone . ../b |
216 $ hg push -B foo ../a | 216 $ hg push -B foo ../a |
217 pushing to ../a | 217 pushing to ../a |
218 searching for changes | 218 searching for changes |
219 no changes found | 219 no changes found |
220 pretxnopen hook: HG_TXNNAME=bookmarks | 220 pretxnopen hook: HG_TXNNAME=bookmarks |
221 pretxnclose hook: HG_PENDING=$TESTTMP/a HG_XNNAME=bookmarks | 221 pretxnclose hook: HG_BOOKMARK_MOVED=1 HG_PENDING=$TESTTMP/a HG_XNNAME=bookmarks |
222 txnclose hook: HG_BOOKMARK_MOVED=1 HG_TXNNAME=bookmarks | 222 txnclose hook: HG_BOOKMARK_MOVED=1 HG_TXNNAME=bookmarks |
223 pushkey hook: HG_KEY=foo HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000 HG_RET=1 | 223 pushkey hook: HG_KEY=foo HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000 HG_RET=1 |
224 exporting bookmark foo | 224 exporting bookmark foo |
225 [1] | 225 [1] |
226 $ cd ../a | 226 $ cd ../a |