Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlogutils/debug.py @ 49275:7a18f6fc7e0c
debugindex: add a `comp-mode` column
author | Pierre-Yves DAVID <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 01 Jun 2022 01:33:47 +0200 |
parents | fbb2477298a6 |
children | 7ba8adced391 |
line wrap: on
line diff
--- a/mercurial/revlogutils/debug.py Wed Jun 01 01:33:25 2022 +0200 +++ b/mercurial/revlogutils/debug.py Wed Jun 01 01:33:47 2022 +0200 @@ -121,6 +121,11 @@ return b"%d" % field +@debug_column(b"comp-mode", size=4, verbose=True) +def compression_mode(index, rev, entry, hexfn): + return b"%d" % entry[constants.ENTRY_DATA_COMPRESSION_MODE] + + def debug_index( ui, repo,