changeset 50354:ca1522fe4ec8 stable

delta-find: assume the target-rev if not specified This will be useful in the next patch, but I am putting it in its own commit to make sure we can easily bisect any subtle side effect. (none are expected, but still)
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 19 Apr 2023 16:59:03 +0200
parents c2a1f8668606
children 0232571255d3
files mercurial/revlogutils/deltas.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlogutils/deltas.py	Thu Apr 20 09:23:58 2023 -0400
+++ b/mercurial/revlogutils/deltas.py	Wed Apr 19 16:59:03 2023 +0200
@@ -684,6 +684,9 @@
         yield None
         return
 
+    if target_rev is None:
+        target_rev = len(revlog)
+
     if (
         cachedelta is not None
         and nullrev == cachedelta[0]