diff mercurial/revlogutils/rewrite.py @ 51092:9c8df10ea6e0

revlog: move the `_chunk` method on the inner object This is a necessary step before being able to move more logic around restoring a revision content there. For now, we do a simple patch for the perf extension logic, when the implementation of the inner object changes, we will likely need some evolution of the API. However this is true of many things in the perf extension. So we will see this later.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 19 Oct 2023 02:57:05 +0200
parents df50a1592e0c
children 3e2a878fb96f
line wrap: on
line diff
--- a/mercurial/revlogutils/rewrite.py	Wed Oct 25 02:13:18 2023 +0200
+++ b/mercurial/revlogutils/rewrite.py	Thu Oct 19 02:57:05 2023 +0200
@@ -109,7 +109,7 @@
                     b'revision having delta stored'
                 )
                 raise error.Abort(m)
-            rawtext = rl._chunk(rev)
+            rawtext = rl._inner._chunk(rev)
         else:
             rawtext = rl.rawdata(rev)