[PATCH 04 of 10] test: use `printenv.py --line` in `test-http-bundle1.t`
Boris Feld
boris.feld at octobus.net
Sat Feb 9 17:03:21 EST 2019
# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1549671635 -3600
# Sat Feb 09 01:20:35 2019 +0100
# Node ID 558d98d70bd179e79d8e24510933425062118ace
# Parent 6179e9a9970f23c881187c71705cfe7347ed5c08
# EXP-Topic hook.txname
# Available At https://bitbucket.org/octobus/mercurial-devel/
# hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 558d98d70bd1
test: use `printenv.py --line` in `test-http-bundle1.t`
This makes the output easier to update and read.
diff --git a/tests/test-http-bundle1.t b/tests/test-http-bundle1.t
--- a/tests/test-http-bundle1.t
+++ b/tests/test-http-bundle1.t
@@ -151,7 +151,7 @@ pull
$ cd copy-pull
$ cat >> .hg/hgrc <<EOF
> [hooks]
- > changegroup = sh -c "printenv.py changegroup"
+ > changegroup = sh -c "printenv.py --line changegroup"
> EOF
$ hg pull
pulling from http://localhost:$HGPORT1/
@@ -161,7 +161,14 @@ pull
adding file changes
added 1 changesets with 1 changes to 1 files
new changesets 5fed3813f7f5
- changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=http://localhost:$HGPORT1/
+ changegroup hook: HG_HOOKNAME=changegroup
+ HG_HOOKTYPE=changegroup
+ HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d
+ HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d
+ HG_SOURCE=pull
+ HG_TXNID=TXN:$ID$
+ HG_URL=http://localhost:$HGPORT1/
+
(run 'hg update' to get a working copy)
$ cd ..
More information about the Mercurial-devel
mailing list