Mercurial > public > mercurial-scm > hg
diff mercurial/dirstatemap.py @ 48044:d5528ac9b4f2
dirstate: Use the Rust implementation of DirstateItem when Rust is enabled
? instead of the C implementation, with C/Rust conversions at the FFI boundary
Differential Revision: https://phab.mercurial-scm.org/D11486
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Wed, 22 Sep 2021 11:33:29 +0200 |
parents | cedfe2606adf |
children | 32ef647821b2 |
line wrap: on
line diff
--- a/mercurial/dirstatemap.py Wed Sep 22 11:28:52 2021 +0200 +++ b/mercurial/dirstatemap.py Wed Sep 22 11:33:29 2021 +0200 @@ -27,7 +27,10 @@ propertycache = util.propertycache -DirstateItem = parsers.DirstateItem +if rustmod is None: + DirstateItem = parsers.DirstateItem +else: + DirstateItem = rustmod.DirstateItem rangemask = 0x7FFFFFFF