Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlogutils/debug.py @ 49273:f6ef18be36e1
debugindex: add a `delta-base` column
author | Pierre-Yves DAVID <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 01 Jun 2022 01:34:10 +0200 |
parents | b0238fc496af |
children | fbb2477298a6 |
line wrap: on
line diff
--- a/mercurial/revlogutils/debug.py Wed Jun 01 01:43:17 2022 +0200 +++ b/mercurial/revlogutils/debug.py Wed Jun 01 01:34:10 2022 +0200 @@ -109,6 +109,11 @@ return b"%d" % entry[constants.ENTRY_DATA_UNCOMPRESSED_LENGTH] +@debug_column(b"delta-base", size=6, verbose=True) +def delta_base(index, rev, entry, hexfn): + return b"%d" % entry[constants.ENTRY_DELTA_BASE] + + def debug_index( ui, repo,