mercurial/merge.py
changeset 52974 ea9846b8e539
parent 52697 f3762eafed66
child 52981 1a99bdbdb71b
--- 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