Mercurial > public > mercurial-scm > hg
comparison mercurial/revlogutils/debug.py @ 49257:b0238fc496af
debugindex: add a `full-size` column
author | Pierre-Yves DAVID <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 01 Jun 2022 01:43:17 +0200 |
parents | d910ca4e995b |
children | f6ef18be36e1 |
comparison
equal
deleted
inserted
replaced
49256:d910ca4e995b | 49257:b0238fc496af |
---|---|
102 parent = entry[constants.ENTRY_PARENT_2] | 102 parent = entry[constants.ENTRY_PARENT_2] |
103 p_entry = index[parent] | 103 p_entry = index[parent] |
104 return hexfn(p_entry[constants.ENTRY_NODE_ID]) | 104 return hexfn(p_entry[constants.ENTRY_NODE_ID]) |
105 | 105 |
106 | 106 |
107 @debug_column(b"full-size", size=20, verbose=True) | |
108 def full_size(index, rev, entry, hexfn): | |
109 return b"%d" % entry[constants.ENTRY_DATA_UNCOMPRESSED_LENGTH] | |
110 | |
111 | |
107 def debug_index( | 112 def debug_index( |
108 ui, | 113 ui, |
109 repo, | 114 repo, |
110 formatter, | 115 formatter, |
111 revlog, | 116 revlog, |