Mercurial > hg
comparison tests/test-http @ 2612:ffb895f16925
add support for streaming clone.
existing clone code uses pull to get changes from remote repo. is very
slow, uses lots of memory and cpu.
new clone code has server write file data straight to client, client
writes file data straight to disk. memory and cpu used are very low,
clone is much faster over lan.
new client can still clone with pull, can still clone from older servers.
new server can still serve older clients.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Fri, 14 Jul 2006 11:17:22 -0700 |
parents | |
children | 479e26afa10f |
comparison
equal
deleted
inserted
replaced
2611:1b4eb1f92433 | 2612:ffb895f16925 |
---|---|
1 #!/bin/sh | |
2 | |
3 mkdir test | |
4 cd test | |
5 echo foo>foo | |
6 hg init | |
7 hg addremove | |
8 hg commit -m 1 | |
9 hg verify | |
10 hg serve -p 20059 -d --pid-file=hg.pid | |
11 cat hg.pid >> $DAEMON_PIDS | |
12 cd .. | |
13 | |
14 echo % clone via stream | |
15 http_proxy= hg clone http://localhost:20059/ copy 2>&1 | \ | |
16 sed -e 's/[0-9][0-9.]*/XXX/g' | |
17 cd copy | |
18 hg verify | |
19 | |
20 cd .. | |
21 | |
22 echo % clone via pull | |
23 http_proxy= hg clone --pull http://localhost:20059/ copy-pull | |
24 cd copy-pull | |
25 hg verify |