Avoid calling fstat for every imported file (slow!) and instead read the file data...
authorSimon Hausmann <hausmann@kde.org>
Wed, 31 Jan 2007 21:38:07 +0000 (22:38 +0100)
committerSimon Hausmann <hausmann@kde.org>
Wed, 31 Jan 2007 21:38:07 +0000 (22:38 +0100)
commit2385536282d809e923af3895624d8c66b01ec433
tree700ee2cb14b51c4652ddb0ae3f8e7b8321dfb738
parent0dd0b9d01116d57c612a5fa90de803bdd836ce11
Avoid calling fstat for every imported file (slow!) and instead read the file data first into the python process and use the length of the bytes read for the size field of git fast-import.

Signed-off-by: Simon Hausmann <hausmann@kde.org>
contrib/fast-import/p4-fast-export.py