( )⚙ D11571 dirstatemap: add a common `_refresh_entry` method for dirstatemap

This is an archive of the discontinued Mercurial Phabricator instance.

dirstatemap: add a common `_refresh_entry` method for dirstatemap
ClosedPublic

Authored by marmoute on Oct 2 2021, 11:05 AM.

Details

Summary

This method is called once a DirstateItem have been modified to apply the
change on the dirstatemap if necessary.

Each variant have a different implementation (which is … the point).

We use addfile for the rustmap and not set_dirstate_item because we need to
keep the internal counter up to date and set_dirstate_item does not do it.

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.