comparison mercurial/debugcommands.py @ 51043:f636103c4d67

revlog: remove legacy usage of `_generaldelta` 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 10:56:42 +0200
parents fd6c748eb8a6
children 47d43efda8b7
comparison
equal deleted inserted replaced
51042:127656e0b97b 51043:f636103c4d67
803 repo, b'debugdeltachain', file_, pycompat.byteskwargs(opts) 803 repo, b'debugdeltachain', file_, pycompat.byteskwargs(opts)
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._generaldelta 808 generaldelta = r.delta_config.general_delta
809 withsparseread = getattr(r, '_withsparseread', False) 809 withsparseread = getattr(r, '_withsparseread', False)
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