Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-http-proxy @ 2621:5a5852a417b1
clone: disable stream support on server side by default.
enable in hgrc like this:
[server]
stream=True
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Sat, 15 Jul 2006 16:06:35 -0700 |
parents | 479e26afa10f |
children | 064aef9162cc |
comparison
equal
deleted
inserted
replaced
2620:de82749d3a71 | 2621:5a5852a417b1 |
---|---|
2 | 2 |
3 hg init a | 3 hg init a |
4 cd a | 4 cd a |
5 echo a > a | 5 echo a > a |
6 hg ci -Ama -d '1123456789 0' | 6 hg ci -Ama -d '1123456789 0' |
7 hg serve -p 20059 -d --pid-file=hg.pid | 7 hg --config server.stream=True serve -p 20059 -d --pid-file=hg.pid |
8 cat hg.pid >> $DAEMON_PIDS | 8 cat hg.pid >> $DAEMON_PIDS |
9 | 9 |
10 cd .. | 10 cd .. |
11 ("$TESTDIR/tinyproxy.py" 20060 localhost >proxy.log 2>&1 </dev/null & | 11 ("$TESTDIR/tinyproxy.py" 20060 localhost >proxy.log 2>&1 </dev/null & |
12 echo $! > proxy.pid) | 12 echo $! > proxy.pid) |
13 cat proxy.pid >> $DAEMON_PIDS | 13 cat proxy.pid >> $DAEMON_PIDS |
14 sleep 2 | 14 sleep 2 |
15 | 15 |
16 echo %% url for proxy, stream | 16 echo %% url for proxy, stream |
17 http_proxy=http://localhost:20060/ hg --config http_proxy.always=True clone --stream http://localhost:20059/ b | \ | 17 http_proxy=http://localhost:20060/ hg --config http_proxy.always=True clone --uncompressed http://localhost:20059/ b | \ |
18 sed -e 's/[0-9][0-9.]*/XXX/g' | 18 sed -e 's/[0-9][0-9.]*/XXX/g' |
19 cd b | 19 cd b |
20 hg verify | 20 hg verify |
21 cd .. | 21 cd .. |
22 | 22 |