Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 52162:13815c9decd4
changelog: also set the general delta config flag in the data config
This duplication is dubious, but it's a decision to be made at a later date,
this is the fix.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Wed, 19 Jun 2024 17:03:13 +0200 |
parents | 9e94f9dbbbe8 |
children | 7346f93be7a4 |
comparison
equal
deleted
inserted
replaced
52161:6f94dc3cf8cf | 52162:13815c9decd4 |
---|---|
1645 features = FEATURES_BY_VERSION[self._format_version] | 1645 features = FEATURES_BY_VERSION[self._format_version] |
1646 self._inline = features[b'inline'](self._format_flags) | 1646 self._inline = features[b'inline'](self._format_flags) |
1647 self.delta_config.general_delta = features[b'generaldelta']( | 1647 self.delta_config.general_delta = features[b'generaldelta']( |
1648 self._format_flags | 1648 self._format_flags |
1649 ) | 1649 ) |
1650 self.data_config.generaldelta = self.delta_config.general_delta | |
1650 self.feature_config.has_side_data = features[b'sidedata'] | 1651 self.feature_config.has_side_data = features[b'sidedata'] |
1651 | 1652 |
1652 if not features[b'docket']: | 1653 if not features[b'docket']: |
1653 self._indexfile = entry_point | 1654 self._indexfile = entry_point |
1654 index_data = entry_data | 1655 index_data = entry_data |
1675 raise error.RevlogError(msg) | 1676 raise error.RevlogError(msg) |
1676 | 1677 |
1677 self._inline = False | 1678 self._inline = False |
1678 # generaldelta implied by version 2 revlogs. | 1679 # generaldelta implied by version 2 revlogs. |
1679 self.delta_config.general_delta = True | 1680 self.delta_config.general_delta = True |
1681 self.data_config.generaldelta = True | |
1680 # the logic for persistent nodemap will be dealt with within the | 1682 # the logic for persistent nodemap will be dealt with within the |
1681 # main docket, so disable it for now. | 1683 # main docket, so disable it for now. |
1682 self._nodemap_file = None | 1684 self._nodemap_file = None |
1683 | 1685 |
1684 if self._docket is not None: | 1686 if self._docket is not None: |