Mercurial > hg
comparison mercurial/revlogutils/debug.py @ 49259:fbb2477298a6
debugindex: add a `flags` column
author | Pierre-Yves DAVID <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 01 Jun 2022 01:33:25 +0200 |
parents | f6ef18be36e1 |
children | 7a18f6fc7e0c |
comparison
equal
deleted
inserted
replaced
49258:f6ef18be36e1 | 49259:fbb2477298a6 |
---|---|
112 @debug_column(b"delta-base", size=6, verbose=True) | 112 @debug_column(b"delta-base", size=6, verbose=True) |
113 def delta_base(index, rev, entry, hexfn): | 113 def delta_base(index, rev, entry, hexfn): |
114 return b"%d" % entry[constants.ENTRY_DELTA_BASE] | 114 return b"%d" % entry[constants.ENTRY_DELTA_BASE] |
115 | 115 |
116 | 116 |
117 @debug_column(b"flags", size=2, verbose=True) | |
118 def flags(index, rev, entry, hexfn): | |
119 field = entry[constants.ENTRY_DATA_OFFSET] | |
120 field &= 0xFFFF | |
121 return b"%d" % field | |
122 | |
123 | |
117 def debug_index( | 124 def debug_index( |
118 ui, | 125 ui, |
119 repo, | 126 repo, |
120 formatter, | 127 formatter, |
121 revlog, | 128 revlog, |