Show More
@@ -1068,6 +1068,10 b' def resolverevlogstorevfsoptions(ui, req' | |||||
1068 | options = {} |
|
1068 | options = {} | |
1069 | options[b'flagprocessors'] = {} |
|
1069 | options[b'flagprocessors'] = {} | |
1070 |
|
1070 | |||
|
1071 | feature_config = options[b'feature-config'] = revlog.FeatureConfig() | |||
|
1072 | data_config = options[b'data-config'] = revlog.DataConfig() | |||
|
1073 | delta_config = options[b'delta-config'] = revlog.DeltaConfig() | |||
|
1074 | ||||
1071 | if requirementsmod.REVLOGV1_REQUIREMENT in requirements: |
|
1075 | if requirementsmod.REVLOGV1_REQUIREMENT in requirements: | |
1072 | options[b'revlogv1'] = True |
|
1076 | options[b'revlogv1'] = True | |
1073 | if requirementsmod.REVLOGV2_REQUIREMENT in requirements: |
|
1077 | if requirementsmod.REVLOGV2_REQUIREMENT in requirements: |
@@ -444,15 +444,22 b' class revlog:' | |||||
444 | assert target[0] in ALL_KINDS |
|
444 | assert target[0] in ALL_KINDS | |
445 | assert len(target) == 2 |
|
445 | assert len(target) == 2 | |
446 | self.target = target |
|
446 | self.target = target | |
447 | self.feature_config = FeatureConfig( |
|
447 | if b'feature-config' in self.opener.options: | |
448 | censorable=censorable, |
|
448 | self.feature_config = self.opener.options[b'feature-config'].copy() | |
449 | canonical_parent_order=canonical_parent_order, |
|
449 | else: | |
450 | ) |
|
450 | self.feature_config = FeatureConfig() | |
451 | self.data_config = DataConfig( |
|
451 | self.feature_config.censorable = censorable | |
452 | check_ambig=checkambig, |
|
452 | self.feature_config.canonical_parent_order = canonical_parent_order | |
453 | mmap_large_index=mmaplargeindex, |
|
453 | if b'data-config' in self.opener.options: | |
454 | ) |
|
454 | self.data_config = self.opener.options[b'data-config'].copy() | |
455 | self.delta_config = DeltaConfig() |
|
455 | else: | |
|
456 | self.data_config = DataConfig() | |||
|
457 | self.data_config.check_ambig = checkambig | |||
|
458 | self.data_config.mmap_large_index = mmaplargeindex | |||
|
459 | if b'delta-config' in self.opener.options: | |||
|
460 | self.delta_config = self.opener.options[b'delta-config'].copy() | |||
|
461 | else: | |||
|
462 | self.delta_config = DeltaConfig() | |||
456 |
|
463 | |||
457 | # 3-tuple of (node, rev, text) for a raw revision. |
|
464 | # 3-tuple of (node, rev, text) for a raw revision. | |
458 | self._revisioncache = None |
|
465 | self._revisioncache = None |
General Comments 0
You need to be logged in to leave comments.
Login now