comparison mercurial/localrepo.py @ 51028:133f5a54ed9d

revlog: create the revlog object at the repository level There is currently no value set in it, but we will be able to start centralise config parsing at the repository level.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 10 Oct 2023 10:02:21 +0200
parents 18c8c18993f0
children 774c00348f9f
comparison
equal deleted inserted replaced
51027:177e7d6bf875 51028:133f5a54ed9d
1065 def resolverevlogstorevfsoptions(ui, requirements, features): 1065 def resolverevlogstorevfsoptions(ui, requirements, features):
1066 """Resolve opener options specific to revlogs.""" 1066 """Resolve opener options specific to revlogs."""
1067 1067
1068 options = {} 1068 options = {}
1069 options[b'flagprocessors'] = {} 1069 options[b'flagprocessors'] = {}
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()
1070 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:
1074 options[b'revlogv2'] = True 1078 options[b'revlogv2'] = True