Code

Fixed displaying import progress by calling flush on stdout.
authorSimon Hausmann <hausmann@kde.org>
Wed, 31 Jan 2007 21:47:53 +0000 (22:47 +0100)
committerSimon Hausmann <hausmann@kde.org>
Wed, 31 Jan 2007 21:47:53 +0000 (22:47 +0100)
Signed-off-by: Simon Hausmann <hausmann@kde.org>
contrib/fast-import/p4-fast-export.py

index 72e01224bf3d75e697479a59b4c2a7d50bab1c81..a1dc54013ef6a52151690d5b1d239395e9c5f2ab 100644 (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"]