diff mercurial/revlog.py @ 51059:47d43efda8b7

revlog: remove legacy usage of `_withsparseread` All core code is now getting the setting from the DeltaConfig object.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 10 Oct 2023 11:24:37 +0200
parents 101c30938c0d
children f71f07a679b4
line wrap: on
line diff
--- a/mercurial/revlog.py	Tue Oct 10 11:16:07 2023 +0200
+++ b/mercurial/revlog.py	Tue Oct 10 11:24:37 2023 +0200
@@ -2021,7 +2021,7 @@
         l = []
         ladd = l.append
 
-        if not self._withsparseread:
+        if not self.data_config.with_sparse_read:
             slicedchunks = (revs,)
         else:
             slicedchunks = deltautil.slicechunk(