Show More
@@ -1125,14 +1125,15 b' def resolverevlogstorevfsoptions(ui, req' | |||||
1125 | ui.config(b'experimental', b'sparse-read.density-threshold') |
|
1125 | ui.config(b'experimental', b'sparse-read.density-threshold') | |
1126 | ) |
|
1126 | ) | |
1127 | srmingapsize = ui.configbytes(b'experimental', b'sparse-read.min-gap-size') |
|
1127 | srmingapsize = ui.configbytes(b'experimental', b'sparse-read.min-gap-size') | |
1128 |
|
|
1128 | data_config.with_sparse_read = withsparseread | |
1129 |
|
|
1129 | data_config.sr_density_threshold = srdensitythres | |
1130 |
|
|
1130 | data_config.sr_min_gap_size = srmingapsize | |
1131 |
|
1131 | |||
1132 | sparserevlog = requirementsmod.SPARSEREVLOG_REQUIREMENT in requirements |
|
1132 | sparserevlog = requirementsmod.SPARSEREVLOG_REQUIREMENT in requirements | |
1133 | delta_config.sparse_revlog = sparserevlog |
|
1133 | delta_config.sparse_revlog = sparserevlog | |
1134 | if sparserevlog: |
|
1134 | if sparserevlog: | |
1135 | options[b'generaldelta'] = True |
|
1135 | options[b'generaldelta'] = True | |
|
1136 | data_config.with_sparse_read = True | |||
1136 |
|
1137 | |||
1137 | maxchainlen = None |
|
1138 | maxchainlen = None | |
1138 | if sparserevlog: |
|
1139 | if sparserevlog: |
@@ -630,17 +630,6 b' class revlog:' | |||||
630 | mmapindexthreshold = None |
|
630 | mmapindexthreshold = None | |
631 | if self._mmaplargeindex: |
|
631 | if self._mmaplargeindex: | |
632 | mmapindexthreshold = self.data_config.mmap_index_threshold |
|
632 | mmapindexthreshold = self.data_config.mmap_index_threshold | |
633 | if self.delta_config.sparse_revlog: |
|
|||
634 | # sparse-revlog forces sparse-read |
|
|||
635 | self.data_config.with_sparse_read = True |
|
|||
636 | elif b'with-sparse-read' in opts: |
|
|||
637 | self.data_config.with_sparse_read = bool(opts[b'with-sparse-read']) |
|
|||
638 | if b'sparse-read-density-threshold' in opts: |
|
|||
639 | self.data_config.sr_density_threshold = opts[ |
|
|||
640 | b'sparse-read-density-threshold' |
|
|||
641 | ] |
|
|||
642 | if b'sparse-read-min-gap-size' in opts: |
|
|||
643 | self.data_config.sr_min_gap_size = opts[b'sparse-read-min-gap-size'] |
|
|||
644 | if self.feature_config.enable_ellipsis: |
|
633 | if self.feature_config.enable_ellipsis: | |
645 | self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor |
|
634 | self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor | |
646 |
|
635 |
General Comments 0
You need to be logged in to leave comments.
Login now