This allows implementing len for DirstateMap and CopyMap efficiently,
without traversing the tree.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
rust/hg-core/src/dirstate_tree/dirstate_map.rs | ||
---|---|---|
125 | I'd have used a dedicated enum, but this is fine for a private function. |
rust/hg-core/src/dirstate_tree/dirstate_map.rs | ||
---|---|---|
125 | Yeah, it’s not great, but a later refactor removes that parameter anyway (pushes its handling to callers). I could potentially backport that change to simplify review, but it’s not trivial because there’s a number of other changesets in-between. |
I'd have used a dedicated enum, but this is fine for a private function.