changeset 52166: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 6f94dc3cf8cf
children 7346f93be7a4
files mercurial/changelog.py mercurial/revlog.py
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changelog.py	Mon Jul 29 15:03:52 2024 +0200
+++ b/mercurial/changelog.py	Wed Jun 19 17:03:13 2024 +0200
@@ -324,6 +324,7 @@
 
             self._format_flags &= ~revlog.FLAG_GENERALDELTA
             self.delta_config.general_delta = False
+            self.data_config.generaldelta = False
 
         # Delta chains for changelogs tend to be very small because entries
         # tend to be small and don't delta well with each. So disable delta
--- 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