#!/bin/sh { hg clone http://localhost:$HGPORT/ copy 2>&1; echo $?; } | \ sed 's/error:.*/error:/' test -d copy || echo copy: No such file or directory cat > dumb.py </dev/null & echo $! >> $DAEMON_PIDS # give the server some time to start running sleep 1 { http_proxy= hg clone http://localhost:$HGPORT/foo copy2 2>&1; echo $?; } | \ sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' kill $!