mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
streaming: actually change default
This commit is contained in:
parent
a2acbc421b
commit
b5b825953f
@ -34,7 +34,7 @@ class StreamException(Exception):
|
||||
# server writes out raw file data.
|
||||
|
||||
def allowed(ui):
|
||||
return ui.configbool('server', 'uncompressed', untrusted=True)
|
||||
return ui.configbool('server', 'uncompressed', True, untrusted=True)
|
||||
|
||||
def stream_out(repo):
|
||||
'''stream out all metadata files in repository.
|
||||
|
@ -16,7 +16,7 @@ hg tag 1.0
|
||||
echo another > foo
|
||||
hg branch stable
|
||||
hg ci -Ambranch
|
||||
hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
|
||||
hg serve --config server.uncompressed=False -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
|
||||
cat hg.pid >> $DAEMON_PIDS
|
||||
|
||||
echo % Logs and changes
|
||||
|
@ -11,8 +11,8 @@ echo bar>foo.d/bAr.hg.d/BaR
|
||||
echo bar>foo.d/baR.d.hg/bAR
|
||||
|
||||
hg commit -A -m 1
|
||||
hg --config server.uncompressed=True serve -p $HGPORT -d --pid-file=../hg1.pid
|
||||
hg serve -p $HGPORT1 -d --pid-file=../hg2.pid
|
||||
hg serve -p $HGPORT -d --pid-file=../hg1.pid
|
||||
hg --config server.uncompressed=False serve -p $HGPORT1 -d --pid-file=../hg2.pid
|
||||
# Test server address cannot be reused
|
||||
hg serve -p $HGPORT1 2>&1 | sed -e "s/abort: cannot start server at ':$HGPORT1':.*/abort: cannot start server at ':\$HGPORT1':/"
|
||||
cd ..
|
||||
|
Loading…
Reference in New Issue
Block a user