This is an archive of the discontinued Mercurial Phabricator instance.

dirstate-tree: Extract into a method sorting children of a given node
ClosedPublic

Authored by SimonSapin on May 17 2021, 6:05 AM.

Details

Summary

A later changset will use this in another place.

This is an associated function (that Python would call static method)
instead of a free function so it doesn’t need to be imported separately.
It’s on Node rather than ChildNodes because the latter is a type alias
to an external type (HashMap) so that would require an extension trait
which needs to be imported separately.

Diff Detail

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

Event Timeline

SimonSapin created this revision.May 17 2021, 6:05 AM
baymax updated this revision to Diff 28001.May 17 2021, 8:39 AM

✅ refresh by Heptapod after a successful CI run (🐙 💚)

Alphare accepted this revision.May 19 2021, 5:54 AM
This revision is now accepted and ready to land.May 19 2021, 5:54 AM
baymax updated this revision to Diff 28102.May 19 2021, 7:41 AM

✅ refresh by Heptapod after a successful CI run (🐙 💚)