changeset 989:1b6eb272b238

Reformat debugindex output
author mpm@selenic.com
date Sun, 21 Aug 2005 16:51:50 -0700
parents a66e249d77ae
children 5007e0bdeed2
files mercurial/commands.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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"""