Import files in chunks to prevent p4 from opening too many files.