diff mercurial/revlogutils/debug.py @ 49272: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
line wrap: on
line diff
--- a/mercurial/revlogutils/debug.py	Wed Jun 01 01:32:54 2022 +0200
+++ b/mercurial/revlogutils/debug.py	Wed Jun 01 01:43:17 2022 +0200
@@ -104,6 +104,11 @@
     return hexfn(p_entry[constants.ENTRY_NODE_ID])
 
 
+@debug_column(b"full-size", size=20, verbose=True)
+def full_size(index, rev, entry, hexfn):
+    return b"%d" % entry[constants.ENTRY_DATA_UNCOMPRESSED_LENGTH]
+
+
 def debug_index(
     ui,
     repo,