Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
49264:e3a267a93711 | 49265:30d2beab8163 |
---|---|
152 | 152 |
153 | 153 |
154 @debug_column(b"sidedata-offset", size=20, verbose=True) | 154 @debug_column(b"sidedata-offset", size=20, verbose=True) |
155 def sidedata_offset(index, rev, entry, hexfn): | 155 def sidedata_offset(index, rev, entry, hexfn): |
156 return b"%d" % entry[constants.ENTRY_SIDEDATA_OFFSET] | 156 return b"%d" % entry[constants.ENTRY_SIDEDATA_OFFSET] |
157 | |
158 | |
159 @debug_column(b"sd-chunk-size", size=10, verbose=True) | |
160 def sidedata_chunk_size(index, rev, entry, hexfn): | |
161 return b"%d" % entry[constants.ENTRY_SIDEDATA_COMPRESSED_LENGTH] | |
157 | 162 |
158 | 163 |
159 def debug_index( | 164 def debug_index( |
160 ui, | 165 ui, |
161 repo, | 166 repo, |