comparison tests/test-ssh-bundle1.t @ 41896:94faa2e84094

transaction: include txnname in the hookargs dictionary There is no reason to not include the txnname alongside the txnid in all case. The python hooks already have them, so aligning the the shell hooks seems it could be useful in the future. (I don't have a strong opinion about this, we can also decide to never align the python and shell hooks and this and I'll drop this patch).
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 09 Feb 2019 23:01:30 +0100
parents 616ef3db5a90
children d7304434390f
comparison
equal deleted inserted replaced
41895:c1017bceb6ec 41896:94faa2e84094
518 HG_HOOKTYPE=changegroup 518 HG_HOOKTYPE=changegroup
519 HG_NODE=a28a9d1a809cab7d4e2fde4bee738a9ede948b60 519 HG_NODE=a28a9d1a809cab7d4e2fde4bee738a9ede948b60
520 HG_NODE_LAST=a28a9d1a809cab7d4e2fde4bee738a9ede948b60 520 HG_NODE_LAST=a28a9d1a809cab7d4e2fde4bee738a9ede948b60
521 HG_SOURCE=serve 521 HG_SOURCE=serve
522 HG_TXNID=TXN:$ID$ 522 HG_TXNID=TXN:$ID$
523 HG_TXNNAME=serve
524 remote:ssh:$LOCALIP
523 HG_URL=remote:ssh:$LOCALIP 525 HG_URL=remote:ssh:$LOCALIP
524 526
525 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 527 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
526 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 528 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
527 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 529 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
535 HG_HOOKTYPE=changegroup 537 HG_HOOKTYPE=changegroup
536 HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6 538 HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6
537 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6 539 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6
538 HG_SOURCE=serve 540 HG_SOURCE=serve
539 HG_TXNID=TXN:$ID$ 541 HG_TXNID=TXN:$ID$
542 HG_TXNNAME=serve
543 remote:ssh:$LOCALIP
540 HG_URL=remote:ssh:$LOCALIP 544 HG_URL=remote:ssh:$LOCALIP
541 545
542 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 546 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
543 Got arguments 1:user@dummy 2:hg init 'a repo' 547 Got arguments 1:user@dummy 2:hg init 'a repo'
544 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio 548 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
550 HG_HOOKTYPE=changegroup 554 HG_HOOKTYPE=changegroup
551 HG_NODE=65c38f4125f9602c8db4af56530cc221d93b8ef8 555 HG_NODE=65c38f4125f9602c8db4af56530cc221d93b8ef8
552 HG_NODE_LAST=65c38f4125f9602c8db4af56530cc221d93b8ef8 556 HG_NODE_LAST=65c38f4125f9602c8db4af56530cc221d93b8ef8
553 HG_SOURCE=serve 557 HG_SOURCE=serve
554 HG_TXNID=TXN:$ID$ 558 HG_TXNID=TXN:$ID$
559 HG_TXNNAME=serve
560 remote:ssh:$LOCALIP
555 HG_URL=remote:ssh:$LOCALIP 561 HG_URL=remote:ssh:$LOCALIP
556 562
557 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 563 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
558 564
559 remote hook failure is attributed to remote 565 remote hook failure is attributed to remote