diff hgsubversion/wrappers.py @ 606:789eec0a339c

wrappers: fix pull output if termwidth() is inexact This is going to happen soon on Windows.
author Patrick Mezard <pmezard@gmail.com>
date Mon, 26 Apr 2010 22:17:25 +0200
parents 1290ab9def8f
children d1de8bb6e11f
line wrap: on
line diff
--- a/hgsubversion/wrappers.py
+++ b/hgsubversion/wrappers.py
@@ -270,7 +270,7 @@ def pull(repo, source, heads=[], force=F
                             msg = [s.strip() for s in msg.splitlines() if s][0]
                         w = hgutil.termwidth()
                         bits = (r.revnum, r.author, msg)
-                        ui.status(('[r%d] %s: %s\n' % bits)[:w])
+                        ui.status(('[r%d] %s: %s' % bits)[:w] + '\n')
                         util.progress(ui, 'pull', r.revnum - start, total=total)
 
                         meta.save_tbdelta(tbdelta)