Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 44356:6f9e8e142cea
nodemap: add a (python) index class for persistent nodemap testing
Using the persistent nodemap require a compeling performance boost and an
existing implementation. The benefit of the persistent nodemap for pure python
code is unclear and we don't have a C implementation for it. Yet we would like
to actually start testing it in more details and define an API for using that
persistent nodemap.
We introduce a new `devel` config option to use an index class dedicated to
Nodemap Testing. This feature is "pure" only because having using a pure-python
index with the `cext` policy proved more difficult than I would like.
There is nothing going on in that class for now, but the coming changeset will
change that.
Differential Revision: https://phab.mercurial-scm.org/D7840
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 15 Jan 2020 15:48:09 +0100 |
parents | 5962fd0d1045 |
children | f7459da77f23 |
comparison
equal
deleted
inserted
replaced
44355:563dfdfd01a4 | 44356:6f9e8e142cea |
---|---|
932 | 932 |
933 if ui.configbool(b'experimental', b'rust.index'): | 933 if ui.configbool(b'experimental', b'rust.index'): |
934 options[b'rust.index'] = True | 934 options[b'rust.index'] = True |
935 if ui.configbool(b'experimental', b'exp-persistent-nodemap'): | 935 if ui.configbool(b'experimental', b'exp-persistent-nodemap'): |
936 options[b'exp-persistent-nodemap'] = True | 936 options[b'exp-persistent-nodemap'] = True |
937 if ui.configbool(b'devel', b'persistent-nodemap'): | |
938 options[b'devel-force-nodemap'] = True | |
937 | 939 |
938 return options | 940 return options |
939 | 941 |
940 | 942 |
941 def makemain(**kwargs): | 943 def makemain(**kwargs): |