find-delta: minor preparatory change
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 07 Nov 2022 20:02:32 -0500
changeset 49675 0fca63953810
parent 49674 5af4a0a73e4c
child 49676 4302db0f54c8
find-delta: minor preparatory change We are about to add more item in the cachedelta object, so lets access the item by index instead of doing a full extensions.
mercurial/revlogutils/deltas.py
--- a/mercurial/revlogutils/deltas.py	Mon Nov 07 17:57:28 2022 -0500
+++ b/mercurial/revlogutils/deltas.py	Mon Nov 07 20:02:32 2022 -0500
@@ -1071,7 +1071,7 @@
                 snapshotdepth = len(revlog._deltachain(deltabase)[0])
         delta = None
         if revinfo.cachedelta:
-            cachebase, cachediff = revinfo.cachedelta
+            cachebase = revinfo.cachedelta[0]
             # check if the diff still apply
             currentbase = cachebase
             while (