HomeSoftware Heritage

Refactor and fix the iterate_statuses function

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

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

Commit No Longer Exists

This commit no longer exists in the repository.