changeset 2622:064aef9162cc

rename stream hgrc option to compressed.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Sun, 16 Jul 2006 10:04:16 -0700
parents 5a5852a417b1
children d1cbfe9e13cd
files doc/hgrc.5.txt mercurial/hgweb/hgweb_mod.py mercurial/sshserver.py mercurial/streamclone.py tests/test-http tests/test-http-proxy tests/test-ssh
diffstat 7 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/doc/hgrc.5.txt	Sat Jul 15 16:06:35 2006 -0700
+++ b/doc/hgrc.5.txt	Sun Jul 16 10:04:16 2006 -0700
@@ -328,7 +328,7 @@
 
 server::
   Controls generic server settings.
-  stream;;
+  uncompressed;;
     Whether to allow clients to clone a repo using the uncompressed
     streaming protocol.  This transfers about 40% more data than a
     regular clone, but uses less memory and CPU on both server and
--- a/mercurial/hgweb/hgweb_mod.py	Sat Jul 15 16:06:35 2006 -0700
+++ b/mercurial/hgweb/hgweb_mod.py	Sun Jul 16 10:04:16 2006 -0700
@@ -861,7 +861,7 @@
 
     def do_capabilities(self, req):
         caps = ['unbundle']
-        if self.repo.ui.configbool('server', 'stream'):
+        if self.repo.ui.configbool('server', 'uncompressed'):
             caps.append('stream=%d' % self.repo.revlogversion)
         resp = ' '.join(caps)
         req.httphdr("application/mercurial-0.1", length=len(resp))
--- a/mercurial/sshserver.py	Sat Jul 15 16:06:35 2006 -0700
+++ b/mercurial/sshserver.py	Sun Jul 16 10:04:16 2006 -0700
@@ -61,7 +61,7 @@
         '''
 
         caps = ['unbundle']
-        if self.ui.configbool('server', 'stream'):
+        if self.ui.configbool('server', 'uncompressed'):
             caps.append('stream=%d' % self.repo.revlogversion)
         self.respond("capabilities: %s\n" % (' '.join(caps),))
 
--- a/mercurial/streamclone.py	Sat Jul 15 16:06:35 2006 -0700
+++ b/mercurial/streamclone.py	Sun Jul 16 10:04:16 2006 -0700
@@ -60,7 +60,7 @@
     '''stream out all metadata files in repository.
     writes to file-like object, must support write() and optional flush().'''
 
-    if not repo.ui.configbool('server', 'stream'):
+    if not repo.ui.configbool('server', 'uncompressed'):
         fileobj.write('1\n')
         return
 
--- a/tests/test-http	Sat Jul 15 16:06:35 2006 -0700
+++ b/tests/test-http	Sun Jul 16 10:04:16 2006 -0700
@@ -4,7 +4,7 @@
 cd test
 echo foo>foo
 hg commit -A -d '0 0' -m 1
-hg --config server.stream=True serve -p 20059 -d --pid-file=hg1.pid
+hg --config server.uncompressed=True serve -p 20059 -d --pid-file=hg1.pid
 cat hg1.pid >> $DAEMON_PIDS
 hg serve -p 20060 -d --pid-file=hg2.pid
 cat hg2.pid >> $DAEMON_PIDS
--- a/tests/test-http-proxy	Sat Jul 15 16:06:35 2006 -0700
+++ b/tests/test-http-proxy	Sun Jul 16 10:04:16 2006 -0700
@@ -4,7 +4,7 @@
 cd a
 echo a > a
 hg ci -Ama -d '1123456789 0'
-hg --config server.stream=True serve -p 20059 -d --pid-file=hg.pid
+hg --config server.uncompressed=True serve -p 20059 -d --pid-file=hg.pid
 cat hg.pid >> $DAEMON_PIDS
 
 cd ..
--- a/tests/test-ssh	Sat Jul 15 16:06:35 2006 -0700
+++ b/tests/test-ssh	Sun Jul 16 10:04:16 2006 -0700
@@ -28,7 +28,7 @@
 echo this > foo
 hg ci -A -m "init" -d "1000000 0" foo
 echo '[server]' > .hg/hgrc
-echo 'stream = True' >> .hg/hgrc
+echo 'uncompressed = True' >> .hg/hgrc
 
 cd ..