This is an archive of the discontinued Mercurial Phabricator instance.

nodemap: deal with data mmap error
ClosedPublic

Authored by marmoute on Apr 16 2021, 12:08 PM.

Details

Summary

If the file is too small, the mmapread call would raise a ValueError. We catch
that and ignore nodemap content (as we do without mmap). This make the repository
slightly slower (until the next write) but usable. Unlike the current crash.

Diff Detail

Repository
rHG Mercurial
Branch
stable
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

marmoute created this revision.Apr 16 2021, 12:08 PM
pulkit accepted this revision.Apr 17 2021, 4:47 PM
This revision is now accepted and ready to land.Apr 17 2021, 4:47 PM
This revision was automatically updated to reflect the committed changes.