diff -r 8bdb2478c4bc -r 47d43efda8b7 mercurial/debugcommands.py --- 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)