# HG changeset patch # User mpm@selenic.com # Date 1124668310 25200 # Node ID 1b6eb272b2385cb10e2fb8bcb0e396477a3230c8 # Parent a66e249d77aee7b6392d3aad70e35adb446dcb1c Reformat debugindex output diff -r a66e249d77ae -r 1b6eb272b238 mercurial/commands.py --- a/mercurial/commands.py Sun Aug 21 16:00:07 2005 -0700 +++ b/mercurial/commands.py Sun Aug 21 16:51:50 2005 -0700 @@ -613,12 +613,12 @@ """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"""