comparison tests/test-ssh @ 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 e8c4f3d3df8c
children 479e26afa10f
comparison
equal deleted inserted replaced
2611:1b4eb1f92433 2612:ffb895f16925
28 echo this > foo 28 echo this > foo
29 hg ci -A -m "init" -d "1000000 0" foo 29 hg ci -A -m "init" -d "1000000 0" foo
30 30
31 cd .. 31 cd ..
32 32
33 echo "# clone remote" 33 echo "# clone remote via stream"
34 hg clone -e ./dummyssh ssh://user@dummy/remote local 34 hg clone -e ./dummyssh ssh://user@dummy/remote local-stream 2>&1 | \
35 sed -e 's/[0-9][0-9.]*/XXX/g'
36 cd local-stream
37 hg verify
38 cd ..
39
40 echo "# clone remote via pull"
41 hg clone -e ./dummyssh --pull ssh://user@dummy/remote local
35 42
36 echo "# verify" 43 echo "# verify"
37 cd local 44 cd local
38 hg verify 45 hg verify
39 46