HomeSoftware Heritage

Refactor the FileRevisionIterator

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
Parents
rDPROV5b84f74dded5: Make ArchiveStorage() accept a StorageInterface object as argument
Branches
Unknown
Tags
Unknown