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
Branch
stable
Lint
No Linters Available
Unit
No Unit Test Coverage

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.