test: use `printenv.py --line` in `test-static-http.t`
authorBoris Feld <boris.feld@octobus.net>
Sat, 09 Feb 2019 01:24:32 +0100
changeset 41645 2306158314e9
parent 41644 9a8d41fa919e
child 41646 d4c9eebdd72d
test: use `printenv.py --line` in `test-static-http.t` This makes the output easier to update and read.
tests/test-static-http.t
--- a/tests/test-static-http.t	Sat Feb 09 01:24:19 2019 +0100
+++ b/tests/test-static-http.t	Sat Feb 09 01:24:32 2019 +0100
@@ -57,7 +57,7 @@
   $ cd ../local
   $ cat >> .hg/hgrc <<EOF
   > [hooks]
-  > changegroup = sh -c "printenv.py changegroup"
+  > changegroup = sh -c "printenv.py --line changegroup"
   > EOF
   $ hg pull
   pulling from static-http://localhost:$HGPORT/remote
@@ -67,7 +67,14 @@
   adding file changes
   added 1 changesets with 1 changes to 1 files
   new changesets 4ac2e3648604
-  changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=4ac2e3648604439c580c69b09ec9d93a88d93432 HG_NODE_LAST=4ac2e3648604439c580c69b09ec9d93a88d93432 HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=http://localhost:$HGPORT/remote
+  changegroup hook: HG_HOOKNAME=changegroup
+  HG_HOOKTYPE=changegroup
+  HG_NODE=4ac2e3648604439c580c69b09ec9d93a88d93432
+  HG_NODE_LAST=4ac2e3648604439c580c69b09ec9d93a88d93432
+  HG_SOURCE=pull
+  HG_TXNID=TXN:$ID$
+  HG_URL=http://localhost:$HGPORT/remote
+  
   (run 'hg update' to get a working copy)
 
 trying to push