# HG changeset patch # User Pierre-Yves David # Date 2022-11-08 01:02:32 # Node ID 0fca6395381013e95b075576abd232ccdfe5cee8 # Parent 5af4a0a73e4cd42225e4915783af8e9a0549af14 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. diff --git a/mercurial/revlogutils/deltas.py b/mercurial/revlogutils/deltas.py --- a/mercurial/revlogutils/deltas.py +++ b/mercurial/revlogutils/deltas.py @@ -1071,7 +1071,7 @@ class deltacomputer: 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 (