( )⚙ D11459 rust: Remove the `rustext.parsers` module

This is an archive of the discontinued Mercurial Phabricator instance.

rust: Remove the `rustext.parsers` module
ClosedPublic

Authored by SimonSapin on Sep 20 2021, 6:16 PM.

Details

Summary

It only exported Rust implementations of the parse_dirstate and pack_dirtate
functions, which are only used (anymore) when Rust is not enabled.

fakedirstatewritetime.py was detecting the presence of rustext.parsers
but what it really wants to know is whether the Rust implementation of
dirstatemap is used. This changes it to detect rustext.dirstate instead.

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.Sep 20 2021, 6:16 PM
Alphare accepted this revision.Sep 22 2021, 3:59 AM
Alphare added a subscriber: Alphare.

I'm glad that's gone!

This revision is now accepted and ready to land.Sep 22 2021, 3:59 AM
This revision was automatically updated to reflect the committed changes.
rust/hg-cpython/src/lib.rs