test-static-http: use printenv.py
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Mon, 26 Mar 2007 23:50:03 -0300
changeset 4290 347766c2ff86
parent 4289 e17598881509
child 4291 35b2e02367a5
test-static-http: use printenv.py
tests/test-static-http
tests/test-static-http.out
--- a/tests/test-static-http	Mon Mar 26 23:50:01 2007 -0300
+++ b/tests/test-static-http	Mon Mar 26 23:50:03 2007 -0300
@@ -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 @@
 
 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	Mon Mar 26 23:50:01 2007 -0300
+++ b/tests/test-static-http.out	Mon Mar 26 23:50:03 2007 -0300
@@ -20,7 +20,7 @@
 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