Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 46310:fc2d5c0aed7f
persistent-nodemap: add a "warn" option to the slow-path config
And make it the default until we get an abort option.
Differential Revision: https://phab.mercurial-scm.org/D9761
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 13 Jan 2021 23:07:41 +0100 |
parents | 89a2afe31e82 |
children | 711ba0f1057e |
comparison
equal
deleted
inserted
replaced
46309:2c9c88879ab7 | 46310:fc2d5c0aed7f |
---|---|
157 if skipflags: | 157 if skipflags: |
158 state[b'skipread'].add(node) | 158 state[b'skipread'].add(node) |
159 else: | 159 else: |
160 # Side-effect: read content and verify hash. | 160 # Side-effect: read content and verify hash. |
161 rl.revision(node) | 161 rl.revision(node) |
162 | |
163 | |
164 # True if a fast implementation for persistent-nodemap is available | |
165 # | |
166 # We also consider we have a "fast" implementation in "pure" python because | |
167 # people using pure don't really have performance consideration (and a | |
168 # wheelbarrow of other slowness source) | |
169 HAS_FAST_PERSISTENT_NODEMAP = rustrevlog is not None or util.safehasattr( | |
170 parsers, 'BaseIndexObject' | |
171 ) | |
162 | 172 |
163 | 173 |
164 @attr.s(slots=True, frozen=True) | 174 @attr.s(slots=True, frozen=True) |
165 class _revisioninfo(object): | 175 class _revisioninfo(object): |
166 """Information about a revision that allows building its fulltext | 176 """Information about a revision that allows building its fulltext |