test: use `printenv.py --line` in `test-ssh-bundle1.t`
This makes the output easier to update and read.
--- a/tests/test-ssh-bundle1.t Sat Feb 09 01:23:29 2019 +0100
+++ b/tests/test-ssh-bundle1.t Sat Feb 09 01:23:49 2019 +0100
@@ -46,7 +46,7 @@
> uncompressed = True
>
> [hooks]
- > changegroup = sh -c "printenv.py changegroup-in-remote 0 ../dummylog"
+ > changegroup = sh -c "printenv.py --line changegroup-in-remote 0 ../dummylog"
> EOF
$ cd $TESTTMP
@@ -131,7 +131,7 @@
checked 3 changesets with 2 changes to 2 files
$ cat >> .hg/hgrc <<EOF
> [hooks]
- > changegroup = sh -c "printenv.py changegroup-in-local 0 ../dummylog"
+ > changegroup = sh -c "printenv.py --line changegroup-in-local 0 ../dummylog"
> EOF
empty default pull
@@ -514,7 +514,14 @@
Got arguments 1:user@dummy 2:hg -R local serve --stdio
Got arguments 1:user@dummy 2:hg -R $TESTTMP/local serve --stdio
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
- changegroup-in-remote hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=a28a9d1a809cab7d4e2fde4bee738a9ede948b60 HG_NODE_LAST=a28a9d1a809cab7d4e2fde4bee738a9ede948b60 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:ssh:$LOCALIP
+ changegroup-in-remote hook: HG_HOOKNAME=changegroup
+ HG_HOOKTYPE=changegroup
+ HG_NODE=a28a9d1a809cab7d4e2fde4bee738a9ede948b60
+ HG_NODE_LAST=a28a9d1a809cab7d4e2fde4bee738a9ede948b60
+ HG_SOURCE=serve
+ HG_TXNID=TXN:$ID$
+ HG_URL=remote:ssh:$LOCALIP
+
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
@@ -524,7 +531,14 @@
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
- changegroup-in-remote hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:ssh:$LOCALIP
+ changegroup-in-remote hook: HG_HOOKNAME=changegroup
+ HG_HOOKTYPE=changegroup
+ HG_NODE=1383141674ec756a6056f6a9097618482fe0f4a6
+ HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6
+ HG_SOURCE=serve
+ HG_TXNID=TXN:$ID$
+ HG_URL=remote:ssh:$LOCALIP
+
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
Got arguments 1:user@dummy 2:hg init 'a repo'
Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
@@ -532,7 +546,14 @@
Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
- changegroup-in-remote hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=65c38f4125f9602c8db4af56530cc221d93b8ef8 HG_NODE_LAST=65c38f4125f9602c8db4af56530cc221d93b8ef8 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:ssh:$LOCALIP
+ changegroup-in-remote hook: HG_HOOKNAME=changegroup
+ HG_HOOKTYPE=changegroup
+ HG_NODE=65c38f4125f9602c8db4af56530cc221d93b8ef8
+ HG_NODE_LAST=65c38f4125f9602c8db4af56530cc221d93b8ef8
+ HG_SOURCE=serve
+ HG_TXNID=TXN:$ID$
+ HG_URL=remote:ssh:$LOCALIP
+
Got arguments 1:user@dummy 2:hg -R remote serve --stdio
remote hook failure is attributed to remote