This is an archive of the discontinued Mercurial Phabricator instance.

dirstate: move clear onto dirstatemap class
ClosedPublic

Authored by durham on Oct 26 2017, 7:25 PM.

Details

Summary

A future diff will move the lazy loading aspect of dirstate to the dirstatemap
class. This means it requires a slightly different strategy of clearing than
just reinstantiating the object (since just reinstantiating the object will
lazily load the on disk data again later instead of remaining permanently
empty).

So let's give it it's own clear function.

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

durham created this revision.Oct 26 2017, 7:25 PM
yuja accepted this revision.Oct 28 2017, 3:46 AM
This revision is now accepted and ready to land.Oct 28 2017, 3:46 AM
This revision was automatically updated to reflect the committed changes.