From 4b277659470d717200cdc56de7b59b30337f1f5a Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Tue, 21 Jan 2014 10:42:15 -0500 Subject: [PATCH] bloom: end progress message with \r, not \n This avoids leaving spurious output lines behind at exit. Signed-off-by: Ben Kelly [rlb@defaultvalue.org: adjust commit message] Reviewed-by: Rob Browning Tested-by: Rob Browning --- cmd/bloom-cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bloom-cmd.py b/cmd/bloom-cmd.py index 05b7d1e..ecf244c 100755 --- a/cmd/bloom-cmd.py +++ b/cmd/bloom-cmd.py @@ -109,7 +109,7 @@ def do_bloom(path, outfilename): msg = b is None and 'creating from' or 'adding' if not _first: _first = path dirprefix = (_first != path) and git.repo_rel(path)+': ' or '' - progress('bloom: %s%s %d file%s (%d object%s).\n' + progress('bloom: %s%s %d file%s (%d object%s).\r' % (dirprefix, msg, len(add), len(add)!=1 and 's' or '', add_count, add_count!=1 and 's' or '')) -- 2.39.2