# HG changeset patch # User Alexis S. L. Carvalho # Date 1174963801 10800 # Node ID e17598881509156ab9fa905481a05e44c58e116b # Parent 8a3e12426c036d7213e1a5a45f7d849c76fb79c5 test-http: use printenv.py diff --git a/tests/test-http b/tests/test-http --- a/tests/test-http +++ b/tests/test-http @@ -1,5 +1,7 @@ #!/bin/sh +cp "$TESTDIR"/printenv.py . + hg init test cd test echo foo>foo @@ -31,6 +33,6 @@ cd .. echo % pull cd copy-pull echo '[hooks]' >> .hg/hgrc -echo 'changegroup = echo changegroup: u=$HG_URL' >> .hg/hgrc +echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc hg pull cd .. diff --git a/tests/test-http.out b/tests/test-http.out --- a/tests/test-http.out +++ b/tests/test-http.out @@ -31,7 +31,7 @@ checking files 1 files, 1 changesets, 1 total revisions adding bar % pull -changegroup: u=http://localhost:20059/ +changegroup hook: HG_NODE=cfbd11a1fa315300a080c3de8fe36b0fc5820acf HG_SOURCE=pull HG_URL=http://localhost:20059/ pulling from http://localhost:20059/ searching for changes adding changesets