HomeSoftware Heritage

Refactor and fix the iterate_statuses function

Description

Refactor and fix the iterate_statuses function

  • do not yield OriginEntry objects if the visit status has no snapshot
  • use set() as intermediate structures to prevent adding the same revision twice

And add simple tests for the ArchiveOriginIterator class (which is an
inderect test for this iterate_statuses() function, really).

Details

Provenance
douarddaAuthored on Feb 17 2021, 5:31 PM
douarddaPushed on Feb 19 2021, 10:01 AM
Differential Revision
D5101: Refactor and fix the iterate_statuses function
Parents
rDPROVdbda3ae1f9f8: Refactor the FileRevisionIterator
Branches
Unknown
Tags
Unknown