--- a/tests/test-static-http
+++ b/tests/test-static-http
@@ -1,5 +1,7 @@
#!/bin/sh
+cp "$TESTDIR"/printenv.py .
+
http_proxy= hg clone static-http://localhost:20059/ copy
echo $?
test -d copy || echo copy: No such file or directory
@@ -44,7 +46,7 @@ hg commit -A -mtest2 -d '100000000 0'
cd ../local
echo '[hooks]' >> .hg/hgrc
-echo 'changegroup = echo changegroup: u=$HG_URL' >> .hg/hgrc
+echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc
http_proxy= hg pull
kill $!
--- a/tests/test-static-http.out
+++ b/tests/test-static-http.out
@@ -20,7 +20,7 @@ checking files
1 files, 1 changesets, 1 total revisions
foo
adding quux
-changegroup: u=static-http://localhost:20059/remote
+changegroup hook: HG_NODE=34401e0e9971e9720b613d9089ffa9a6eefb3d2d HG_SOURCE=pull HG_URL=static-http://localhost:20059/remote
pulling from static-http://localhost:20059/remote
searching for changes
adding changesets