comparison mercurial/interfaces/repository.py @ 47139:f58a13c52726

revlog: split the `version` attribute into its two components The `revlog.version` attribute contained an integer coding 2 different informations: * the revlog version number * a bit field defining some specific feature of the revlog We now explicitly store the two components independently. This avoid exposing the implementation details all around the code and prepare for future revlog version that would encode the information in a different way. In the process we drop the `version` attribute from the interface. It was flagged for removal when that interface was created. Differential Revision: https://phab.mercurial-scm.org/D10565
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 03 May 2021 12:20:45 +0200
parents 81eb7091c494
children bc7d465ea11e
comparison
equal deleted inserted replaced
47138:bc138f2a2e47 47139:f58a13c52726
1179 1179
1180 TODO this is revlog specific and should not be exposed. 1180 TODO this is revlog specific and should not be exposed.
1181 """ 1181 """
1182 ) 1182 )
1183 1183
1184 version = interfaceutil.Attribute(
1185 """Revlog version number.
1186
1187 TODO this is revlog specific and should not be exposed.
1188 """
1189 )
1190
1191 _generaldelta = interfaceutil.Attribute( 1184 _generaldelta = interfaceutil.Attribute(
1192 """Whether generaldelta storage is being used. 1185 """Whether generaldelta storage is being used.
1193 1186
1194 TODO this is revlog specific and should not be exposed. 1187 TODO this is revlog specific and should not be exposed.
1195 """ 1188 """