Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 32269:75e93d95aae6
revlog: rename _chunkraw to _getsegmentforrevs()
This completes our rename of internal revlog methods to
distinguish between low-level raw revlog data "segments" and
higher-level, per-revision "chunks."
perf.py has been updated to consult both names so it will work
against older Mercurial versions.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 06 May 2017 12:12:53 -0700 |
parents | 85dc5a25f1fc |
children | 9bc36198338e |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Sat May 06 12:02:31 2017 -0700 +++ b/mercurial/debugcommands.py Sat May 06 12:12:53 2017 -0700 @@ -1707,9 +1707,9 @@ numother += 1 # Obtain data on the raw chunks in the revlog. - chunk = r._chunkraw(rev, rev)[1] - if chunk: - chunktype = chunk[0] + segment = r._getsegmentforrevs(rev, rev)[1] + if segment: + chunktype = segment[0] else: chunktype = 'empty'