delta-find: add more explanation to the the deltas_limit < length check
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 23 Nov 2023 01:28:30 +0100
changeset 51327 a4af7507fa4b
parent 51326 01db705bbe32
child 51328 46415df4eb1c
delta-find: add more explanation to the the deltas_limit < length check More explanations is always good.
mercurial/revlogutils/deltas.py
--- 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