Browse Source

Fixed displaying import progress by calling flush on stdout.

Signed-off-by: Simon Hausmann <hausmann@kde.org>
maint
Simon Hausmann 18 years ago
parent
commit
214bed8239
  1. 1
      contrib/fast-import/p4-fast-export.py

1
contrib/fast-import/p4-fast-export.py

@ -91,6 +91,7 @@ for change in changes: @@ -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"]

Loading…
Cancel
Save