comparison mercurial/changelog.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 f4733654f144
children 5cc8deb96b48
comparison
equal deleted inserted replaced
52161:6f94dc3cf8cf 52162:13815c9decd4
322 if self._initempty and (self._format_version == revlog.REVLOGV1): 322 if self._initempty and (self._format_version == revlog.REVLOGV1):
323 # changelogs don't benefit from generaldelta. 323 # changelogs don't benefit from generaldelta.
324 324
325 self._format_flags &= ~revlog.FLAG_GENERALDELTA 325 self._format_flags &= ~revlog.FLAG_GENERALDELTA
326 self.delta_config.general_delta = False 326 self.delta_config.general_delta = False
327 self.data_config.generaldelta = False
327 328
328 # Delta chains for changelogs tend to be very small because entries 329 # Delta chains for changelogs tend to be very small because entries
329 # tend to be small and don't delta well with each. So disable delta 330 # tend to be small and don't delta well with each. So disable delta
330 # chains. 331 # chains.
331 self._storedeltachains = False 332 self._storedeltachains = False