This is an archive of the discontinued Mercurial Phabricator instance.

verify: allow suppressing warnings about extra files
ClosedPublic

Authored by indygreg on Apr 4 2018, 9:24 PM.

Details

Summary

The verifier issues warnings when the set of files in .hg/store
doesn't align with the set of files that are advertised via
repo.file(f).files() for all files seen in ctx.files() changelog
traversal.

This logic is reasonable for a default implementation. But some
stores may have extra files whose presence is harmless. Or those
stores may not have the same transaction rollback semantics that
unlink files as other stores.

This commit adds support for disabling the warning for orphaned
files.

The simple store extension has been taught to set this flag.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Apr 4 2018, 9:24 PM
durin42 accepted this revision.Apr 6 2018, 8:29 PM
This revision is now accepted and ready to land.Apr 6 2018, 8:29 PM
This revision was automatically updated to reflect the committed changes.