sapling/eden/scm/tests/test-fb-hgext-remotefilelog-ruststores.t
Meyer Jacobs b489f6b1c8 tests: modify tests to exercise non-packfile configuration
Summary:
Remove packfile-specific parts of tests and modify them to test without depending on packfiles where possible.

Currently debugindexedlogdatastore and debugindexedloghistorystore appear to be broken, and debugdumpindexedlog just dumps the raw indexedlog contents, without any semantic information, so for the time being I've simply removed most packfile inspection.

Reviewed By: DurhamG

Differential Revision: D29099241

fbshipit-source-id: 86c4f9c83520374560587b8bec5c569d9c5c6510
2021-06-18 17:39:52 -07:00

44 lines
1.2 KiB
Perl

#chg-compatible
$ . "$TESTDIR/library.sh"
$ newserver master
$ clone master shallow --noupdate
$ cd shallow
$ setconfig remotefilelog.useruststore=True
$ setconfig treemanifest.useruststore=True
$ echo x > x
$ hg commit -qAm x
$ ls_l .hg/store/indexedlogdatastore | grep log
* 60 log (glob)
$ ls_l .hg/store/indexedloghistorystore | grep log
* 127 log (glob)
$ ls_l .hg/store/manifests/indexedlogdatastore | grep log
* 101 log (glob)
$ ls_l .hg/store/manifests/indexedloghistorystore | grep log
* 124 log (glob)
$ echo y > y
$ hg commit -qAm y
$ ls_l .hg/store/indexedlogdatastore | grep log
* 108 log (glob)
$ ls_l .hg/store/indexedloghistorystore | grep log
* 242 log (glob)
$ ls_l .hg/store/manifests/indexedlogdatastore | grep log
* 237 log (glob)
$ ls_l .hg/store/manifests/indexedloghistorystore | grep log
* 236 log (glob)
$ echo z > z
$ hg commit -qAm z
$ ls_l .hg/store/indexedlogdatastore | grep log
* 156 log (glob)
$ ls_l .hg/store/indexedloghistorystore | grep log
* 357 log (glob)
$ ls_l .hg/store/manifests/indexedlogdatastore | grep log
* 417 log (glob)
$ ls_l .hg/store/manifests/indexedloghistorystore | grep log
* 348 log (glob)