diff 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
line wrap: on
line diff
--- a/mercurial/revlog.py	Mon Jul 29 15:03:52 2024 +0200
+++ b/mercurial/revlog.py	Wed Jun 19 17:03:13 2024 +0200
@@ -1647,6 +1647,7 @@
             self.delta_config.general_delta = features[b'generaldelta'](
                 self._format_flags
             )
+            self.data_config.generaldelta = self.delta_config.general_delta
             self.feature_config.has_side_data = features[b'sidedata']
 
             if not features[b'docket']:
@@ -1677,6 +1678,7 @@
             self._inline = False
             # generaldelta implied by version 2 revlogs.
             self.delta_config.general_delta = True
+            self.data_config.generaldelta = True
             # the logic for persistent nodemap will be dealt with within the
             # main docket, so disable it for now.
             self._nodemap_file = None