mercurial/revlogutils/debug.py
changeset 49259 fbb2477298a6
parent 49258 f6ef18be36e1
child 49260 7a18f6fc7e0c
--- a/mercurial/revlogutils/debug.py	Wed Jun 01 01:34:10 2022 +0200
+++ b/mercurial/revlogutils/debug.py	Wed Jun 01 01:33:25 2022 +0200
@@ -114,6 +114,13 @@
     return b"%d" % entry[constants.ENTRY_DELTA_BASE]
 
 
+@debug_column(b"flags", size=2, verbose=True)
+def flags(index, rev, entry, hexfn):
+    field = entry[constants.ENTRY_DATA_OFFSET]
+    field &= 0xFFFF
+    return b"%d" % field
+
+
 def debug_index(
     ui,
     repo,