Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-http @ 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 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 mkdir test | 3 hg init test |
4 cd test | 4 cd test |
5 echo foo>foo | 5 echo foo>foo |
6 hg init | 6 hg commit -A -d '0 0' -m 1 |
7 hg addremove | 7 hg --config server.stream=True serve -p 20059 -d --pid-file=hg1.pid |
8 hg commit -m 1 | 8 cat hg1.pid >> $DAEMON_PIDS |
9 hg verify | 9 hg serve -p 20060 -d --pid-file=hg2.pid |
10 hg serve -p 20059 -d --pid-file=hg.pid | 10 cat hg2.pid >> $DAEMON_PIDS |
11 cat hg.pid >> $DAEMON_PIDS | |
12 cd .. | 11 cd .. |
13 | 12 |
14 echo % clone via stream | 13 echo % clone via stream |
15 http_proxy= hg clone --stream http://localhost:20059/ copy 2>&1 | \ | 14 http_proxy= hg clone --uncompressed http://localhost:20059/ copy 2>&1 | \ |
16 sed -e 's/[0-9][0-9.]*/XXX/g' | 15 sed -e 's/[0-9][0-9.]*/XXX/g' |
17 cd copy | 16 cd copy |
18 hg verify | 17 hg verify |
19 | 18 |
20 cd .. | 19 echo % try to clone via stream, should use pull instead |
20 http_proxy= hg clone --uncompressed http://localhost:20060/ copy2 | |
21 | 21 |
22 echo % clone via pull | 22 echo % clone via pull |
23 http_proxy= hg clone http://localhost:20059/ copy-pull | 23 http_proxy= hg clone http://localhost:20059/ copy-pull |
24 cd copy-pull | 24 cd copy-pull |
25 hg verify | 25 hg verify |