changeset 21032:67b6f1144e90

debugrevlog: format columns (more) nicely when dumping index data
author Mads Kiilerich <madski@unity3d.com>
date Wed, 19 Mar 2014 00:13:38 +0100
parents 05cfcecb3aef
children 254f55b64e31
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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),