# HG changeset patch # User Alexis S. L. Carvalho # Date 1174963803 10800 # Node ID 347766c2ff86092eacae8fc76ce695762ac1ae8d # Parent e17598881509156ab9fa905481a05e44c58e116b test-static-http: use printenv.py diff --git a/tests/test-static-http b/tests/test-static-http --- 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 $! diff --git a/tests/test-static-http.out b/tests/test-static-http.out --- 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