diff -r 729082bb9938 -r 655b5b465953 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Thu Aug 16 02:08:13 2018 +0200 +++ b/mercurial/debugcommands.py Thu Aug 16 02:53:42 2018 +0200 @@ -88,6 +88,10 @@ stringutil, ) +from .revlogutils import ( + deltas as deltautil +) + release = lockmod.release command = registrar.command() @@ -706,7 +710,7 @@ largestblock = 0 srchunks = 0 - for revschunk in revlog._slicechunk(r, chain): + for revschunk in deltautil.slicechunk(r, chain): srchunks += 1 blkend = start(revschunk[-1]) + length(revschunk[-1]) blksize = blkend - start(revschunk[0])