--- a/tests/test-http Mon Mar 26 23:50:00 2007 -0300
+++ b/tests/test-http Mon Mar 26 23:50:01 2007 -0300
@@ -1,5 +1,7 @@
#!/bin/sh
+cp "$TESTDIR"/printenv.py .
+
hg init test
cd test
echo foo>foo
@@ -31,6 +33,6 @@
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 ..
--- a/tests/test-http.out Mon Mar 26 23:50:00 2007 -0300
+++ b/tests/test-http.out Mon Mar 26 23:50:01 2007 -0300
@@ -31,7 +31,7 @@
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