debugrevlog: format columns (more) nicely when dumping index data
authorMads Kiilerich <madski@unity3d.com>
Wed, 19 Mar 2014 00:13:38 +0100
changeset 21032 67b6f1144e90
parent 21031 05cfcecb3aef
child 21033 254f55b64e31
debugrevlog: format columns (more) nicely when dumping index data
mercurial/commands.py
--- a/mercurial/commands.py	Sat Mar 22 17:14:37 2014 -0700
+++ b/mercurial/commands.py	Wed Mar 19 00:13:38 2014 +0100
@@ -2496,7 +2496,7 @@
 
     if opts.get("dump"):
         numrevs = len(r)
-        ui.write("# rev p1rev p2rev start end deltastart base p1 p2"
+        ui.write("# rev p1rev p2rev start   end deltastart base   p1   p2"
                  " rawsize totalsize compression heads\n")
         ts = 0
         heads = set()
@@ -2510,7 +2510,7 @@
             ts = ts + rs
             heads -= set(r.parentrevs(rev))
             heads.add(rev)
-            ui.write("%d %d %d %d %d %d %d %d %d %d %d %d %d\n" %
+            ui.write("%5d %5d %5d %5d %5d %10d %4d %4d %4d %7d %9d %11d %5d\n" %
                      (rev, p1, p2, r.start(rev), r.end(rev),
                       r.start(dbase), r.start(cbase),
                       r.start(p1), r.start(p2),