Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlogutils/__init__.py @ 49791:05db41701ece
find-delta: pass the cache-delta usage policy alongside the cache-delta
The idea is to give higher level code more control to what will happens with
the cache delta passed. This should help with controling how we treat delta's
from different sources.
The final goal of this change is to allow for server modes where the client can
blindly accept any server delta without regards to any local constraints. This
will be implemented in later changesets.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 07 Nov 2022 22:12:59 -0500 |
parents | 642e31cb55f0 |
children | 398a105b16a0 |
line wrap: on
line diff
--- a/mercurial/revlogutils/__init__.py Mon Nov 28 18:58:35 2022 +0100 +++ b/mercurial/revlogutils/__init__.py Mon Nov 07 22:12:59 2022 -0500 @@ -67,7 +67,7 @@ node: expected hash of the revision p1, p2: parent revs of the revision btext: built text cache consisting of a one-element list - cachedelta: (baserev, uncompressed_delta) or None + cachedelta: (baserev, uncompressed_delta, usage_mode) or None flags: flags associated to the revision storage One of btext[0] or cachedelta must be set.