Show More
@@ -385,9 +385,7 b' class changelog(revlog.revlog):' | |||
|
385 | 385 | datafile=datafile, |
|
386 | 386 | checkambig=True, |
|
387 | 387 | mmaplargeindex=True, |
|
388 | persistentnodemap=opener.options.get( | |
|
389 | b'exp-persistent-nodemap', False | |
|
390 | ), | |
|
388 | persistentnodemap=opener.options.get(b'persistent-nodemap', False), | |
|
391 | 389 | ) |
|
392 | 390 | |
|
393 | 391 | if self._initempty and (self.version & 0xFFFF == revlog.REVLOGV1): |
@@ -937,11 +937,11 b' def resolverevlogstorevfsoptions(ui, req' | |||
|
937 | 937 | if ui.configbool(b'experimental', b'rust.index'): |
|
938 | 938 | options[b'rust.index'] = True |
|
939 | 939 | if NODEMAP_REQUIREMENT in requirements: |
|
940 |
options[b' |
|
|
940 | options[b'persistent-nodemap'] = True | |
|
941 | 941 | if ui.configbool(b'experimental', b'exp-persistent-nodemap.mmap'): |
|
942 |
options[b' |
|
|
942 | options[b'persistent-nodemap.mmap'] = True | |
|
943 | 943 | epnm = ui.config(b'experimental', b'exp-persistent-nodemap.mode') |
|
944 |
options[b' |
|
|
944 | options[b'persistent-nodemap.mode'] = epnm | |
|
945 | 945 | if ui.configbool(b'devel', b'persistent-nodemap'): |
|
946 | 946 | options[b'devel-force-nodemap'] = True |
|
947 | 947 |
@@ -1588,9 +1588,7 b' class manifestrevlog(object):' | |||
|
1588 | 1588 | checkambig=not bool(tree), |
|
1589 | 1589 | mmaplargeindex=True, |
|
1590 | 1590 | upperboundcomp=MAXCOMPRESSION, |
|
1591 | persistentnodemap=opener.options.get( | |
|
1592 | b'exp-persistent-nodemap', False | |
|
1593 | ), | |
|
1591 | persistentnodemap=opener.options.get(b'persistent-nodemap', False), | |
|
1594 | 1592 | ) |
|
1595 | 1593 | |
|
1596 | 1594 | self.index = self._revlog.index |
@@ -50,7 +50,7 b' def persisted_data(revlog):' | |||
|
50 | 50 | docket.data_unused = data_unused |
|
51 | 51 | |
|
52 | 52 | filename = _rawdata_filepath(revlog, docket) |
|
53 |
use_mmap = revlog.opener.options.get(b" |
|
|
53 | use_mmap = revlog.opener.options.get(b"persistent-nodemap.mmap") | |
|
54 | 54 | try: |
|
55 | 55 | with revlog.opener(filename) as fd: |
|
56 | 56 | if use_mmap: |
@@ -142,8 +142,8 b' def _persist_nodemap(tr, revlog, pending' | |||
|
142 | 142 | can_incremental = util.safehasattr(revlog.index, "nodemap_data_incremental") |
|
143 | 143 | ondisk_docket = revlog._nodemap_docket |
|
144 | 144 | feed_data = util.safehasattr(revlog.index, "update_nodemap_data") |
|
145 |
use_mmap = revlog.opener.options.get(b" |
|
|
146 |
mode = revlog.opener.options.get(b" |
|
|
145 | use_mmap = revlog.opener.options.get(b"persistent-nodemap.mmap") | |
|
146 | mode = revlog.opener.options.get(b"persistent-nodemap.mode") | |
|
147 | 147 | if not can_incremental: |
|
148 | 148 | msg = _(b"persistent nodemap in strict mode without efficient method") |
|
149 | 149 | if mode == b'warn': |
General Comments 0
You need to be logged in to leave comments.
Login now