summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Simon Hausmann <hausmann@kde.org>2007-01-31 22:47:53 +0100
committerLibravatar Simon Hausmann <hausmann@kde.org>2007-01-31 22:47:53 +0100
commit214bed82390479bdba31337ac420bb09e9b366e9 (patch)
treeab061ce6ba4dbcfa17d76a27c041b1a0ff338e1d
parentPermit calling p4-fast-export with a depot path that has the typical ... wild... (diff)
downloadtgif-214bed82390479bdba31337ac420bb09e9b366e9.tar.xz
Fixed displaying import progress by calling flush on stdout.
Signed-off-by: Simon Hausmann <hausmann@kde.org>
-rw-r--r--contrib/fast-import/p4-fast-export.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/fast-import/p4-fast-export.py b/contrib/fast-import/p4-fast-export.py
index 72e01224bf..a1dc54013e 100644
--- a/contrib/fast-import/p4-fast-export.py
+++ b/contrib/fast-import/p4-fast-export.py
@@ -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"]