# HG changeset patch # User Pierre-Yves David # Date 2023-10-10 09:07:15 # Node ID 96f521df2508b18435c3259483e99c34ab379419 # Parent e80e2d614c9de0a35b56625b3f48239144867f47 revlog: remove legacy usage of `_deltabothparents` All core code is now getting the setting from the DeltaConfig object. diff --git a/mercurial/revlogutils/deltas.py b/mercurial/revlogutils/deltas.py --- a/mercurial/revlogutils/deltas.py +++ b/mercurial/revlogutils/deltas.py @@ -924,7 +924,7 @@ def _rawgroups(revlog, p1, p2, cachedelt # exclude already lazy tested base if any parents = [p for p in (p1, p2) if p != nullrev] - if not revlog._deltabothparents and len(parents) == 2: + if not revlog.delta_config.delta_both_parents and len(parents) == 2: parents.sort() # To minimize the chance of having to build a fulltext, # pick first whichever parent is closest to us (max rev)