Page MenuHomePhabricator

dirstate-tree: Empty shell for a second Rust DirstateMap implementation
ClosedPublic

Authored by SimonSapin on Apr 12 2021, 8:23 AM.

Details

Summary

For background see description of the previous changeset
"Make Rust DirstateMap bindings go through a trait object".

Add an empty shell for a opt-in second Rust implementation of the
DirstateMap type and the status function. For now all methods panic.
This can be seen in "action" with:

./hg status --config experimental.dirstate-tree.in-memory=1

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

SimonSapin created this revision.Apr 12 2021, 8:23 AM
baymax updated this revision to Diff 27048.Mon, Apr 19, 11:02 AM

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

Alphare accepted this revision.Mon, Apr 19, 11:23 AM
Alphare added a subscriber: Alphare.
Alphare added inline comments.
rust/hg-cpython/src/dirstate/dirstate_map.rs
57

I didn't know you could write as _, but it's cool!

SimonSapin updated this revision to Diff 27315.Mon, May 3, 6:23 AM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.