diff mercurial/debugcommands.py @ 51056: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 f636103c4d67
children d7f975e49f20
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Tue Oct 10 11:16:07 2023 +0200
+++ b/mercurial/debugcommands.py	Tue Oct 10 11:24:37 2023 +0200
@@ -806,7 +806,7 @@
     start = r.start
     length = r.length
     generaldelta = r.delta_config.general_delta
-    withsparseread = getattr(r, '_withsparseread', False)
+    withsparseread = r.data_config.with_sparse_read
 
     # security to avoid crash on corrupted revlogs
     total_revs = len(index)