##// END OF EJS Templates
Reformat debugindex output
mpm@selenic.com -
r989:1b6eb272 default
parent child Browse files
Show More
@@ -613,12 +613,12 b' def debugindex(ui, file_):'
613 613 """dump the contents of an index file"""
614 614 r = hg.revlog(hg.opener(""), file_, "")
615 615 ui.write(" rev offset length base linkrev" +
616 " p1 p2 nodeid\n")
616 " nodeid p1 p2\n")
617 617 for i in range(r.count()):
618 618 e = r.index[i]
619 ui.write("% 6d % 9d % 7d % 6d % 7d %s.. %s.. %s..\n" % (
619 ui.write("% 6d % 9d % 7d % 6d % 7d %s %s %s\n" % (
620 620 i, e[0], e[1], e[2], e[3],
621 hg.hex(e[4][:5]), hg.hex(e[5][:5]), hg.hex(e[6][:5])))
621 hg.short(e[6]), hg.short(e[4]), hg.short(e[5])))
622 622
623 623 def debugindexdot(ui, file_):
624 624 """dump an index DAG as a .dot file"""
General Comments 0
You need to be logged in to leave comments. Login now