comparison 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
comparison
equal deleted inserted replaced
51055:8bdb2478c4bc 51056:47d43efda8b7
804 ) 804 )
805 index = r.index 805 index = r.index
806 start = r.start 806 start = r.start
807 length = r.length 807 length = r.length
808 generaldelta = r.delta_config.general_delta 808 generaldelta = r.delta_config.general_delta
809 withsparseread = getattr(r, '_withsparseread', False) 809 withsparseread = r.data_config.with_sparse_read
810 810
811 # security to avoid crash on corrupted revlogs 811 # security to avoid crash on corrupted revlogs
812 total_revs = len(index) 812 total_revs = len(index)
813 813
814 chain_size_cache = {} 814 chain_size_cache = {}