# HG changeset patch # User Pierre-Yves David # Date 1722512554 -7200 # Node ID 87a8190e66fe8e7166cf55a14947ec85c4462cb5 # Parent e1fd715df257412a76b20e9e649de94a04ffe6c2 manifest: use read_any_fast_delta in changectx The new API is clearer but also more expressive. It allow to detect case where we did return a full read and populated the associated cache. Saving time! diff -r e1fd715df257 -r 87a8190e66fe mercurial/context.py --- a/mercurial/context.py Thu Aug 01 13:40:46 2024 +0200 +++ b/mercurial/context.py Thu Aug 01 13:42:34 2024 +0200 @@ -541,7 +541,10 @@ @propertycache def _manifestdelta(self): - return self._manifestctx.readdelta() + base, delta = self._manifestctx.read_any_fast_delta() + if base is None: + self._manifest = delta + return delta @propertycache def _parents(self):