Fixed displaying import progress by calling flush on stdout.

Signed-off-by: Simon Hausmann <hausmann@kde.org>
This commit is contained in:
Simon Hausmann 2007-01-31 22:47:53 +01:00
parent f26037dce3
commit 214bed8239

View File

@ -91,6 +91,7 @@ for change in changes:
description = p4Cmd("describe %s" % change)
sys.stdout.write("\rimporting revision %s (%s%%)" % (change, cnt * 100 / len(changes)))
sys.stdout.flush()
cnt = cnt + 1
epoch = description["time"]