HomeSoftware Heritage

Refactor the FileRevisionIterator

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Refactor the FileRevisionIterator

  • rename it as CSVRevisionIterator
  • make it take an iterable as input instead of a file name
  • make it a true iterator (iter)
  • refactor the main method to simplify it

The expected input iterable should generate 3-tuples, corresponding the
the 3 columns of the originally expected CSV file (revision sha1, date,
directory sha1).

This makes the class much easier to test.

Details

Provenance
douarddaAuthored on Feb 17 2021, 5:25 PM
douarddaPushed on Feb 19 2021, 10:01 AM
Differential Revision
D5100: Refactor the FileRevisionIterator

Commit No Longer Exists

This commit no longer exists in the repository.