changeset 51327:a4af7507fa4b

delta-find: add more explanation to the the deltas_limit < length check More explanations is always good.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 23 Nov 2023 01:28:30 +0100
parents 01db705bbe32
children 46415df4eb1c
files mercurial/revlogutils/deltas.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlogutils/deltas.py	Thu Nov 23 01:13:40 2023 +0100
+++ b/mercurial/revlogutils/deltas.py	Thu Nov 23 01:28:30 2023 +0100
@@ -776,6 +776,9 @@
                     tested.add(rev)
                     continue
                 # filter out delta base that will never produce good delta
+                #
+                # if the delta of that base is already bigger than the limit
+                # for the delta chain size, doing a delta is hopeless.
                 if deltas_limit < self.revlog.length(rev):
                     tested.add(rev)
                     continue