( )⚙ D12530 rust-dirstatemap: use `get_node_mut` instead or `get_or_insert_node`

This is an archive of the discontinued Mercurial Phabricator instance.

rust-dirstatemap: use `get_node_mut` instead or `get_or_insert_node`
Needs ReviewPublic

Authored by Alphare on Tue, Apr 12, 12:05 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

This (along with the docstring), makes it more obvious that we're not expecting
to insert a node here. This is less prone to bugs in later refactorings.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage