diff -r ef4192dec3d3 -r ea9846b8e539 mercurial/merge.py --- a/mercurial/merge.py Wed Feb 19 00:26:24 2025 +0100 +++ b/mercurial/merge.py Mon Feb 17 16:28:00 2025 +0100 @@ -1844,7 +1844,7 @@ b'fsmonitor', b'warn_update_file_count' ) # avoid cycle dirstate -> sparse -> merge -> dirstate - dirstate_rustmod = policy.importrust("dirstate") + dirstate_rustmod = policy.importrust("dirstate", pyo3=True) if dirstate_rustmod is not None: # When using rust status, fsmonitor becomes necessary at higher sizes