Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 32229: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 |
comparison
equal
deleted
inserted
replaced
32228:112ba1c7d65d | 32229:75e93d95aae6 |
---|---|
1705 nump2 += 1 | 1705 nump2 += 1 |
1706 elif delta != nullrev: | 1706 elif delta != nullrev: |
1707 numother += 1 | 1707 numother += 1 |
1708 | 1708 |
1709 # Obtain data on the raw chunks in the revlog. | 1709 # Obtain data on the raw chunks in the revlog. |
1710 chunk = r._chunkraw(rev, rev)[1] | 1710 segment = r._getsegmentforrevs(rev, rev)[1] |
1711 if chunk: | 1711 if segment: |
1712 chunktype = chunk[0] | 1712 chunktype = segment[0] |
1713 else: | 1713 else: |
1714 chunktype = 'empty' | 1714 chunktype = 'empty' |
1715 | 1715 |
1716 if chunktype not in chunktypecounts: | 1716 if chunktype not in chunktypecounts: |
1717 chunktypecounts[chunktype] = 0 | 1717 chunktypecounts[chunktype] = 0 |