# HG changeset patch # User mpm@selenic.com # Date 2005-08-21 23:51:50 # Node ID 1b6eb272b2385cb10e2fb8bcb0e396477a3230c8 # Parent a66e249d77aee7b6392d3aad70e35adb446dcb1c Reformat debugindex output diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -613,12 +613,12 @@ def debugindex(ui, file_): """dump the contents of an index file""" r = hg.revlog(hg.opener(""), file_, "") ui.write(" rev offset length base linkrev" + - " p1 p2 nodeid\n") + " nodeid p1 p2\n") for i in range(r.count()): e = r.index[i] - ui.write("% 6d % 9d % 7d % 6d % 7d %s.. %s.. %s..\n" % ( + ui.write("% 6d % 9d % 7d % 6d % 7d %s %s %s\n" % ( i, e[0], e[1], e[2], e[3], - hg.hex(e[4][:5]), hg.hex(e[5][:5]), hg.hex(e[6][:5]))) + hg.short(e[6]), hg.short(e[4]), hg.short(e[5]))) def debugindexdot(ui, file_): """dump an index DAG as a .dot file"""