comparison mercurial/revlogutils/debug.py @ 49279:e3a267a93711

debugindex: add a `sidedata-offset` column
author Pierre-Yves DAVID <pierre-yves.david@octobus.net>
date Wed, 01 Jun 2022 01:34:21 +0200
parents 27583efef74d
children 30d2beab8163
comparison
equal deleted inserted replaced
49278:27583efef74d 49279:e3a267a93711
147 return b"default" 147 return b"default"
148 elif compression == constants.COMP_MODE_INLINE: 148 elif compression == constants.COMP_MODE_INLINE:
149 return b"inline" 149 return b"inline"
150 else: 150 else:
151 return b"%d" % compression 151 return b"%d" % compression
152
153
154 @debug_column(b"sidedata-offset", size=20, verbose=True)
155 def sidedata_offset(index, rev, entry, hexfn):
156 return b"%d" % entry[constants.ENTRY_SIDEDATA_OFFSET]
152 157
153 158
154 def debug_index( 159 def debug_index(
155 ui, 160 ui,
156 repo, 161 repo,