sapling/tests/test-verify-skipmanifests.t
Durham Goode ad813edcbd treemanifest: enable treemanifest by default in tests
Summary:
Now that all our repos are treemanifest, let's enable the extension by
default in tests. Once we're certain no one needs it in production we'll also
make it the default in core Mercurial.

This diff includes a minor fix in treemanifest to be aware of always-enabled
extensions. It won't matter until we actually add treemanifest to the list of
default enabled extensions, but I caught this while testing things.

Reviewed By: ikostia

Differential Revision: D15030253

fbshipit-source-id: d8361f915928b6ad90665e6ed330c1df5c8d8d86
2019-05-28 03:17:02 -07:00

23 lines
589 B
Perl

$ setconfig extensions.treemanifest=!
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