Mercurial > hg-stable
changeset 49789:0fca63953810
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.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 07 Nov 2022 20:02:32 -0500 |
parents | 5af4a0a73e4c |
children | 4302db0f54c8 |
files | mercurial/revlogutils/deltas.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 (