Mercurial > hg
comparison tests/test-remotefilelog-partial-shallow.t @ 46874:84a93fa7ecfd
revlog-compression: use zstd by default (if available)
As see in changeset bb271ec2fbfb, zstd is 20% to 50% faster for reading and
writing.
Use take advantage of the new config behavior to try zstd by default, falling
back to zlib is zstd is not available on that plateform.
Differential Revision: https://phab.mercurial-scm.org/D10326
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 06 Apr 2021 18:55:19 +0200 |
parents | 0800d9e6e216 |
children | dcaa2df1f688 |
comparison
equal
deleted
inserted
replaced
46873:0abf5eba0042 | 46874:84a93fa7ecfd |
---|---|
16 | 16 |
17 # partial shallow clone | 17 # partial shallow clone |
18 | 18 |
19 $ hg clone --shallow ssh://user@dummy/master shallow --noupdate --config remotefilelog.includepattern=foo | 19 $ hg clone --shallow ssh://user@dummy/master shallow --noupdate --config remotefilelog.includepattern=foo |
20 streaming all changes | 20 streaming all changes |
21 3 files to transfer, 336 bytes of data | 21 3 files to transfer, 336 bytes of data (no-zstd !) |
22 transferred 336 bytes in * seconds (*/sec) (glob) | 22 transferred 336 bytes in * seconds (* */sec) (glob) (no-zstd !) |
23 3 files to transfer, 338 bytes of data (zstd !) | |
24 transferred 338 bytes in * seconds (* */sec) (glob) (zstd !) | |
23 searching for changes | 25 searching for changes |
24 no changes found | 26 no changes found |
25 $ cat >> shallow/.hg/hgrc <<EOF | 27 $ cat >> shallow/.hg/hgrc <<EOF |
26 > [remotefilelog] | 28 > [remotefilelog] |
27 > cachepath=$PWD/hgcache | 29 > cachepath=$PWD/hgcache |