This is an archive of the discontinued Mercurial Phabricator instance.

rust-dirstatemap: add simpler method `get_or_insert_node` for the common case
Needs ReviewPublic

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

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

All but one case use the exact same input for most arguments, this simplifies
code and reduces footgun potential.

Diff Detail

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

Event Timeline

Alphare created this revision.Tue, Apr 12, 12:05 PM
Alphare retitled this revision from rust-dirstatemap: add a simpler method `get_or_insert_node` for the common case to rust-dirstatemap: add simpler method `get_or_insert_node` for the common case.Tue, Apr 12, 12:10 PM