Mercurial > hg
diff mercurial/revlogutils/debug.py @ 49265:30d2beab8163
debugindex: add a `sd-chunk-size` column
author | Pierre-Yves DAVID <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 01 Jun 2022 01:34:33 +0200 |
parents | e3a267a93711 |
children | da3e37ecacde |
line wrap: on
line diff
--- a/mercurial/revlogutils/debug.py Wed Jun 01 01:34:21 2022 +0200 +++ b/mercurial/revlogutils/debug.py Wed Jun 01 01:34:33 2022 +0200 @@ -156,6 +156,11 @@ return b"%d" % entry[constants.ENTRY_SIDEDATA_OFFSET] +@debug_column(b"sd-chunk-size", size=10, verbose=True) +def sidedata_chunk_size(index, rev, entry, hexfn): + return b"%d" % entry[constants.ENTRY_SIDEDATA_COMPRESSED_LENGTH] + + def debug_index( ui, repo,