Mercurial > hg
comparison tests/test-ssh-bundle1.t @ 27739:d6d3cf5fda6f
hooks: add HG_NODE_LAST to txnclose and changegroup hook environments
Sometimes a txnclose or changegroup hook wants to iterate through all
the changesets in transaction: in that situation usually the revset
`$HG_NODE:` is used to select the revisions. Unfortunately this revset
sometimes may contain too many changesets because we don't have the
write lock while the hook runs newer changes may be added to
repository in the meantime.
That's why there is a need for extra variable carrying the information about
the last change in the transaction.
author | Mateusz Kwapich <mitrandir@fb.com> |
---|---|
date | Tue, 05 Jan 2016 17:37:59 -0800 |
parents | 77d25b913f80 |
children | 29cfc474c5fd |
comparison
equal
deleted
inserted
replaced
27738:a0e783d26e81 | 27739:d6d3cf5fda6f |
---|---|
490 Got arguments 1:user@dummy 2:hg -R doesnotexist serve --stdio | 490 Got arguments 1:user@dummy 2:hg -R doesnotexist serve --stdio |
491 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 491 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
492 Got arguments 1:user@dummy 2:hg -R local serve --stdio | 492 Got arguments 1:user@dummy 2:hg -R local serve --stdio |
493 Got arguments 1:user@dummy 2:hg -R $TESTTMP/local serve --stdio | 493 Got arguments 1:user@dummy 2:hg -R $TESTTMP/local serve --stdio |
494 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 494 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
495 changegroup-in-remote hook: HG_NODE=a28a9d1a809cab7d4e2fde4bee738a9ede948b60 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:ssh:127.0.0.1 (glob) | 495 changegroup-in-remote hook: HG_NODE=a28a9d1a809cab7d4e2fde4bee738a9ede948b60 HG_NODE_LAST=a28a9d1a809cab7d4e2fde4bee738a9ede948b60 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:ssh:127.0.0.1 (glob) |
496 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 496 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
497 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 497 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
498 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 498 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
499 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 499 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
500 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 500 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
501 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 501 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
502 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 502 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
503 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 503 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
504 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 504 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
505 changegroup-in-remote hook: HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:ssh:127.0.0.1 (glob) | 505 changegroup-in-remote hook: HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:ssh:127.0.0.1 (glob) |
506 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 506 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
507 Got arguments 1:user@dummy 2:hg init 'a repo' | 507 Got arguments 1:user@dummy 2:hg init 'a repo' |
508 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio | 508 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio |
509 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio | 509 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio |
510 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio | 510 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio |
511 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio | 511 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio |
512 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 512 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
513 changegroup-in-remote hook: HG_NODE=65c38f4125f9602c8db4af56530cc221d93b8ef8 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:ssh:127.0.0.1 (glob) | 513 changegroup-in-remote hook: HG_NODE=65c38f4125f9602c8db4af56530cc221d93b8ef8 HG_NODE_LAST=65c38f4125f9602c8db4af56530cc221d93b8ef8 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:ssh:127.0.0.1 (glob) |
514 Got arguments 1:user@dummy 2:hg -R remote serve --stdio | 514 Got arguments 1:user@dummy 2:hg -R remote serve --stdio |
515 | 515 |
516 remote hook failure is attributed to remote | 516 remote hook failure is attributed to remote |
517 | 517 |
518 $ cat > $TESTTMP/failhook << EOF | 518 $ cat > $TESTTMP/failhook << EOF |