Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 1312:c9cf171f30dd
Merge with TAH
author | mpm@selenic.com |
---|---|
date | Thu, 22 Sep 2005 09:41:34 -0700 |
parents | 3b717f27ffea 332f225b835c |
children | 1cc7c0cbc30b |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Sep 22 09:39:05 2005 -0700 +++ b/mercurial/commands.py Thu Sep 22 09:41:34 2005 -0700 @@ -902,11 +902,12 @@ items = list(walk(repo, pats, opts)) if not items: return - fmt = '%%s %%-%ds %%-%ds %%s\n' % ( + fmt = '%%s %%-%ds %%-%ds %%s' % ( max([len(abs) for (src, abs, rel, exact) in items]), max([len(rel) for (src, abs, rel, exact) in items])) for src, abs, rel, exact in items: - ui.write(fmt % (src, abs, rel, exact and 'exact' or '')) + line = fmt % (src, abs, rel, exact and 'exact' or '') + ui.write("%s\n" % line.rstrip()) def diff(ui, repo, *pats, **opts): """diff working directory (or selected files)"""