This is an archive of the discontinued Mercurial Phabricator instance.

dirstate-v2: Drop parent directory cache when removing a dirstate node
ClosedPublic

Authored by SimonSapin on Jun 1 2021, 12:51 PM.

Details

Summary

The premise of the directory cache is that the dirstate contains child nodes
for every entry that read_dir would return. When removing nodes, that may
not be the case anymore so the cache should be invalidated.

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

SimonSapin created this revision.Jun 1 2021, 12:51 PM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.
baymax updated this revision to Diff 28387.Jun 1 2021, 5:05 PM

✅ refresh by Heptapod after a successful CI run (🐙 💚)