Mercurial > public > mercurial-scm > hg
comparison mercurial/revlogutils/debug.py @ 49252:4141951dacff
debugindex: rename the parent column to mention nodeid
We will add new columns with the "revnum" version of the parent. It will be
useful in case we need to inspect a corrupted revlog index.
author | Pierre-Yves DAVID <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 01 Jun 2022 01:13:13 +0200 |
parents | ccd76e292be5 |
children | a321304269cf |
comparison
equal
deleted
inserted
replaced
49251:ccd76e292be5 | 49252:4141951dacff |
---|---|
31 | 31 |
32 fm = formatter | 32 fm = formatter |
33 | 33 |
34 fm.plain( | 34 fm.plain( |
35 b' rev linkrev %s %s %s\n' | 35 b' rev linkrev %s %s %s\n' |
36 % (b'nodeid'.rjust(idlen), b'p1'.rjust(idlen), b'p2'.rjust(idlen)) | 36 % ( |
37 b'nodeid'.rjust(idlen), | |
38 b'p1-nodeid'.rjust(idlen), | |
39 b'p2-nodeid'.rjust(idlen), | |
40 ) | |
37 ) | 41 ) |
38 | 42 |
39 for rev in revlog: | 43 for rev in revlog: |
40 node = revlog.node(rev) | 44 node = revlog.node(rev) |
41 parents = revlog.parents(node) | 45 parents = revlog.parents(node) |