sapling/tests/test-verify-skipmanifests.t
Phil Cohen 0584f5d23f hg: fastverify: unify and fold into core
Summary: `fastverifier` was sometimes being overriden by `shallowverifier` when remotefilelog was enabled. Since the latter is a subset of the former, let's just fold both into the core verifier code backed by a config, `verify.skipmanifests`, that we can default to true.

Reviewed By: DurhamG

Differential Revision: D6882222

fbshipit-source-id: 9f337ca031a070425ccdc9ee02f6765e68436da9
2018-04-13 21:51:03 -07:00

26 lines
621 B
Perl

$ cat >> $HGRCPATH << EOF
> [verify]
> skipmanifests=true
> EOF
Turn manifest verification on and off:
$ hg init repo1
$ cd repo1
$ hg debugdrawdag <<'EOS'
> b c
> |/
> a
> EOS
$ hg verify --config verify.skipmanifests=0
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
3 files, 3 changesets, 3 total revisions
$ echo "[verify]" >> $HGRCPATH
$ echo "skipmanifests=1" >> $HGRCPATH
$ hg verify
checking changesets
verify.skipmanifests is enabled; skipping verification of manifests
0 files, 3 changesets, 0 total revisions