Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/sshrepo.py @ 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 | e1831f06eef1 |
children | 109a22f5434a |
comparison
equal
deleted
inserted
replaced
2611:1b4eb1f92433 | 2612:ffb895f16925 |
---|---|
196 l = int(self.pipei.readline()) | 196 l = int(self.pipei.readline()) |
197 r = self.pipei.read(l) | 197 r = self.pipei.read(l) |
198 if not r: | 198 if not r: |
199 return 1 | 199 return 1 |
200 return int(r) | 200 return int(r) |
201 | |
202 def stream_out(self): | |
203 return self.do_cmd('stream_out') |