mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
9ea4436262
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.
21 lines
271 B
Bash
Executable File
21 lines
271 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mkdir test
|
|
cd test
|
|
echo foo>foo
|
|
hg init
|
|
hg addremove
|
|
hg commit -m 1
|
|
hg verify
|
|
hg serve -p 20059 -d --pid-file=hg.pid
|
|
cat hg.pid >> $DAEMON_PIDS
|
|
cd ..
|
|
|
|
http_proxy= hg clone --pull http://localhost:20059/ copy
|
|
cd copy
|
|
hg verify
|
|
hg co
|
|
cat foo
|
|
hg manifest
|
|
hg pull
|