mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
0584f5d23f
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
26 lines
621 B
Perl
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
|