Mercurial > hg
diff tests/test-revlog-delta-find.t @ 50657:e77ca247b85b stable
delta-find: fix pulled-delta-reuse-policy=forced behavior
The code that select delta still has too many oportunity to discard the delta
is has been forcibly asked to reuse. However is is fairly easy to use a
dedicated fastpath for this case. So we do so.
Cleaning other code that tries to enforce that policy will be done on default.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 05 Jun 2023 03:11:26 +0200 |
parents | f2d78fb29f61 |
children | 23b0999f6201 |
line wrap: on
line diff
--- a/tests/test-revlog-delta-find.t Thu Jun 08 03:49:44 2023 +0200 +++ b/tests/test-revlog-delta-find.t Mon Jun 05 03:11:26 2023 +0200 @@ -329,8 +329,8 @@ DBG-DELTAS: CHANGELOG: * (glob) DBG-DELTAS: MANIFESTLOG: * (glob) DBG-DELTAS: MANIFESTLOG: * (glob) - DBG-DELTAS: FILELOG:my-file.txt: rev=3: delta-base=2 is-cached=1 *search-rounds=1 try-count=1* (glob) - DBG-DELTAS: FILELOG:my-file.txt: rev=4: delta-base=3 is-cached=1 *search-rounds=1 try-count=1* (glob) + DBG-DELTAS: FILELOG:my-file.txt: rev=3: delta-base=2 is-cached=1 *search-rounds=0 try-count=0* (glob) + DBG-DELTAS: FILELOG:my-file.txt: rev=4: delta-base=3 is-cached=1 *search-rounds=0 try-count=0* (glob) Check that running "forced" on a non-general delta repository does not corrupt it ---------------------------------------------------------------------------------