test-http: use printenv.py
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Mon, 26 Mar 2007 23:50:01 -0300
changeset 4289 e17598881509
parent 4288 8a3e12426c03
child 4290 347766c2ff86
test-http: use printenv.py
tests/test-http
tests/test-http.out
--- 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