Show More
@@ -328,7 +328,7 b' paths::' | |||
|
328 | 328 | |
|
329 | 329 | server:: |
|
330 | 330 | Controls generic server settings. |
|
331 | stream;; | |
|
331 | uncompressed;; | |
|
332 | 332 | Whether to allow clients to clone a repo using the uncompressed |
|
333 | 333 | streaming protocol. This transfers about 40% more data than a |
|
334 | 334 | regular clone, but uses less memory and CPU on both server and |
@@ -861,7 +861,7 b' class hgweb(object):' | |||
|
861 | 861 | |
|
862 | 862 | def do_capabilities(self, req): |
|
863 | 863 | caps = ['unbundle'] |
|
864 |
if self.repo.ui.configbool('server', ' |
|
|
864 | if self.repo.ui.configbool('server', 'uncompressed'): | |
|
865 | 865 | caps.append('stream=%d' % self.repo.revlogversion) |
|
866 | 866 | resp = ' '.join(caps) |
|
867 | 867 | req.httphdr("application/mercurial-0.1", length=len(resp)) |
@@ -61,7 +61,7 b' class sshserver(object):' | |||
|
61 | 61 | ''' |
|
62 | 62 | |
|
63 | 63 | caps = ['unbundle'] |
|
64 |
if self.ui.configbool('server', ' |
|
|
64 | if self.ui.configbool('server', 'uncompressed'): | |
|
65 | 65 | caps.append('stream=%d' % self.repo.revlogversion) |
|
66 | 66 | self.respond("capabilities: %s\n" % (' '.join(caps),)) |
|
67 | 67 |
@@ -60,7 +60,7 b' def stream_out(repo, fileobj):' | |||
|
60 | 60 | '''stream out all metadata files in repository. |
|
61 | 61 | writes to file-like object, must support write() and optional flush().''' |
|
62 | 62 | |
|
63 |
if not repo.ui.configbool('server', ' |
|
|
63 | if not repo.ui.configbool('server', 'uncompressed'): | |
|
64 | 64 | fileobj.write('1\n') |
|
65 | 65 | return |
|
66 | 66 |
@@ -4,7 +4,7 b' hg init test' | |||
|
4 | 4 | cd test |
|
5 | 5 | echo foo>foo |
|
6 | 6 | hg commit -A -d '0 0' -m 1 |
|
7 |
hg --config server. |
|
|
7 | hg --config server.uncompressed=True serve -p 20059 -d --pid-file=hg1.pid | |
|
8 | 8 | cat hg1.pid >> $DAEMON_PIDS |
|
9 | 9 | hg serve -p 20060 -d --pid-file=hg2.pid |
|
10 | 10 | cat hg2.pid >> $DAEMON_PIDS |
General Comments 0
You need to be logged in to leave comments.
Login now