comparison tests/test-ssh.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 9a8d41fa919e
children d7304434390f
comparison
equal deleted inserted replaced
41895:c1017bceb6ec 41896:94faa2e84094
568 HG_HOOKTYPE=changegroup 568 HG_HOOKTYPE=changegroup
569 HG_NODE=a28a9d1a809cab7d4e2fde4bee738a9ede948b60 569 HG_NODE=a28a9d1a809cab7d4e2fde4bee738a9ede948b60
570 HG_NODE_LAST=a28a9d1a809cab7d4e2fde4bee738a9ede948b60 570 HG_NODE_LAST=a28a9d1a809cab7d4e2fde4bee738a9ede948b60
571 HG_SOURCE=serve 571 HG_SOURCE=serve
572 HG_TXNID=TXN:$ID$ 572 HG_TXNID=TXN:$ID$
573 HG_TXNNAME=serve
573 HG_URL=remote:ssh:$LOCALIP 574 HG_URL=remote:ssh:$LOCALIP
574 575
575 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 576 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
576 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 577 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
577 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 578 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
586 HG_HOOKTYPE=changegroup 587 HG_HOOKTYPE=changegroup
587 HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6 588 HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6
588 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6 589 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6
589 HG_SOURCE=serve 590 HG_SOURCE=serve
590 HG_TXNID=TXN:$ID$ 591 HG_TXNID=TXN:$ID$
592 HG_TXNNAME=serve
591 HG_URL=remote:ssh:$LOCALIP 593 HG_URL=remote:ssh:$LOCALIP
592 594
593 Got arguments 1:user@dummy 2:chg -R remote serve --stdio (chg !) 595 Got arguments 1:user@dummy 2:chg -R remote serve --stdio (chg !)
594 changegroup-in-remote hook: HG_BUNDLE2=1 (chg !) 596 changegroup-in-remote hook: HG_BUNDLE2=1 (chg !)
595 HG_HOOKNAME=changegroup (chg !) 597 HG_HOOKNAME=changegroup (chg !)
596 HG_HOOKTYPE=changegroup (chg !) 598 HG_HOOKTYPE=changegroup (chg !)
597 HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6 (chg !) 599 HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6 (chg !)
598 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6 (chg !) 600 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6 (chg !)
599 HG_SOURCE=serve (chg !) 601 HG_SOURCE=serve (chg !)
600 HG_TXNID=TXN:$ID$ (chg !) 602 HG_TXNID=TXN:$ID$ (chg !)
603 HG_TXNNAME=serve (chg !)
601 HG_URL=remote:ssh:$LOCALIP (chg !) 604 HG_URL=remote:ssh:$LOCALIP (chg !)
602 (chg !) 605 (chg !)
603 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 606 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
604 Got arguments 1:user@dummy 2:hg init 'a repo' 607 Got arguments 1:user@dummy 2:hg init 'a repo'
605 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio 608 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
612 HG_HOOKTYPE=changegroup 615 HG_HOOKTYPE=changegroup
613 HG_NODE=65c38f4125f9602c8db4af56530cc221d93b8ef8 616 HG_NODE=65c38f4125f9602c8db4af56530cc221d93b8ef8
614 HG_NODE_LAST=65c38f4125f9602c8db4af56530cc221d93b8ef8 617 HG_NODE_LAST=65c38f4125f9602c8db4af56530cc221d93b8ef8
615 HG_SOURCE=serve 618 HG_SOURCE=serve
616 HG_TXNID=TXN:$ID$ 619 HG_TXNID=TXN:$ID$
620 HG_TXNNAME=serve
617 HG_URL=remote:ssh:$LOCALIP 621 HG_URL=remote:ssh:$LOCALIP
618 622
619 Got arguments 1:user@dummy 2:hg -R remote serve --stdio 623 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
620 624
621 625