diff mercurial/commands.py @ 1309:332f225b835c

Make debugwalk strip trailing spaces and remove these from test-walk.out
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 21 Sep 2005 08:07:38 +0200
parents 1546c2aa6b30
children c9cf171f30dd
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Sep 21 07:56:19 2005 +0200
+++ b/mercurial/commands.py	Wed Sep 21 08:07:38 2005 +0200
@@ -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)"""