Mercurial > public > mercurial-scm > hg
diff mercurial/dirstate.py @ 48235:5c567aca080d
dirstate-v2: add an option to prevent unintentional slow dirstate-v2
This is the project policy discussed in November 2020 and already put to use for
the persistent nodemap.
Differential Revision: https://phab.mercurial-scm.org/D11668
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 15 Oct 2021 01:27:39 +0200 |
parents | b4f83c9e7905 |
children | 602c8e8411f5 |
line wrap: on
line diff
--- a/mercurial/dirstate.py Thu Oct 14 22:35:46 2021 -0700 +++ b/mercurial/dirstate.py Fri Oct 15 01:27:39 2021 +0200 @@ -39,6 +39,8 @@ parsers = policy.importmod('parsers') rustmod = policy.importrust('dirstate') +HAS_FAST_DIRSTATE_V2 = rustmod is not None + propertycache = util.propertycache filecache = scmutil.filecache _rangemask = dirstatemap.rangemask