Mercurial > hg-stable
diff mercurial/commands.py @ 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 | 422981492ace |
children | 693b4cb4330f |
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),