D7118: rust-dirstatemap: remove additional lookups in traverse

Yuya Nishihara yuya at tcha.org
Fri Oct 18 06:44:32 EDT 2019


> +++ b/mercurial/dirstate.py
> @@ -919,6 +919,9 @@
>          matchalways = match.always()
>          matchtdir = match.traversedir
>          dmap = self._map
> +        if rustmod is not None:
> +            dmap = self._map._rustmap

If it's the same trick, can't it be abstracted away? `if rustmod` seems weird.


More information about the Mercurial-devel mailing list