This is an archive of the discontinued Mercurial Phabricator instance.

rust-dirstatemap: properly decrement counter for tracked descendants
ClosedPublic

Authored by Alphare on Apr 4 2022, 11:30 AM.

Details

Summary

I found this bug when writing unit tests after the fact for the DirstateMap.
We never decremented the tracked descendants counter since we were always
resetting the node data before reading it. This also drops the use of state,
in favor of the new API to get that information.

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

Alphare created this revision.Apr 4 2022, 11:30 AM
Alphare updated this revision to Diff 32760.Apr 4 2022, 1:38 PM
baymax updated this revision to Diff 32765.Apr 4 2022, 2:33 PM

โœ… refresh by Heptapod after a successful CI run (๐Ÿ™ ๐Ÿ’š)
โš  This patch is intended for stable โš 

This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.