Mercurial > public > mercurial-scm > hg
comparison mercurial/revlogutils/debug.py @ 49262:4c145006b24a
debugindex: add a `chunk-size` column
author | Pierre-Yves DAVID <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 01 Jun 2022 01:33:36 +0200 |
parents | 7ba8adced391 |
children | 27583efef74d |
comparison
equal
deleted
inserted
replaced
49261:7ba8adced391 | 49262:4c145006b24a |
---|---|
131 field = entry[constants.ENTRY_DATA_OFFSET] | 131 field = entry[constants.ENTRY_DATA_OFFSET] |
132 field >>= 16 | 132 field >>= 16 |
133 return b"%d" % field | 133 return b"%d" % field |
134 | 134 |
135 | 135 |
136 @debug_column(b"chunk-size", size=10, verbose=True) | |
137 def data_chunk_size(index, rev, entry, hexfn): | |
138 return b"%d" % entry[constants.ENTRY_DATA_COMPRESSED_LENGTH] | |
139 | |
140 | |
136 def debug_index( | 141 def debug_index( |
137 ui, | 142 ui, |
138 repo, | 143 repo, |
139 formatter, | 144 formatter, |
140 revlog, | 145 revlog, |