mercurial/dirstate.py
changeset 47095 473abf4728bf
parent 47094 e061a1df32a8
child 47121 b6339a993b91
--- a/mercurial/dirstate.py	Thu Apr 08 14:58:44 2021 +0200
+++ b/mercurial/dirstate.py	Tue Mar 30 09:56:04 2021 +0200
@@ -1790,7 +1790,12 @@
             Does not fill the Dirstatemap when called. This allows for
             optimizations where only setting/getting the parents is needed.
             """
-            self._inner_rustmap = rustmod.DirstateMap(self._root)
+            use_dirstate_tree = self._ui.configbool(
+                b"experimental",
+                b"dirstate-tree.in-memory",
+                False,
+            )
+            self._inner_rustmap = rustmod.DirstateMap(use_dirstate_tree)
             return self._inner_rustmap
 
         @property