@matheusbsbs / matheus-bagliano / commits / 214bed8239
Fork 0

Fixed displaying import progress by calling flush on stdout.

Signed-off-by: Simon Hausmann <hausmann@kde.org>

Simon Hausmann committed Jan 31, 2007 at 22:47 UTC 214bed82390479bdba31337ac420bb09e9b366e9
1 file changed +1
contrib/fast-import/p4-fast-export.py
+1
@@ -91,6 +91,7 @@ for change in changes:
91 description = p4Cmd("describe %s" % change)
92
93 sys.stdout.write("\rimporting revision %s (%s%%)" % (change, cnt * 100 / len(changes)))
94 + sys.stdout.flush()
95 cnt = cnt + 1
96
97 epoch = description["time"]