sapling/eden/scm/tests/test-fb-hgext-debugdetectissues.t
Xavier Deguillard dc8c24ab30 remotefilelog: enable the rust stores by default
Summary:
The Rust store code has been enabled everywhere for a few weeks now, let's
enable it by default in the code. Future changes will remove the config as well
as all the code associated with the non Rust store code.

The various tests changes are due to small difference between the Rust code and
the Python one, the biggest one being it's handling of corrupted packfiles. The
old code silently ignored them, while the new one errors out for local
packfiles. The test-lfs-bundle.t difference is just due to an ordering
difference between Python and Rust.

Reviewed By: kulshrax

Differential Revision: D21985744

fbshipit-source-id: 10410560193476bc303a72e7583f84924a6de820
2020-06-23 18:47:44 -07:00

27 lines
857 B
Perl

$ configure modern
$ newserver master
$ cat >> .hg/hgrc <<EOF
> [remotefilelog]
> cachelimit = 0B
> manifestlimit = 0B
> EOF
$ hg debugdetectissues
ran issue detector 'cachesizeexceedslimit', found 0 issues
$ echo "a" > a ; hg add a ; hg commit -qAm a
$ echo "b" > b ; hg add b ; hg commit -qAm b
$ hg debugdetectissues
ran issue detector 'cachesizeexceedslimit', found 0 issues
$ cd ..
$ clone master shallow
$ cd shallow
$ cat >> .hg/hgrc <<EOF
> [remotefilelog]
> cachelimit = 0B
> manifestlimit = 0B
> EOF
$ hg debugdetectissues
ran issue detector 'cachesizeexceedslimit', found 2 issues
'cache_size_exceeds_limit': 'cache size of * exceeds configured limit of 0. 0 files skipped.' (glob)
'manifest_size_exceeds_limit': 'manifest cache size of * exceeds configured limit of 0. 0 files skipped.' (glob)