HomeSoftware Heritage

Replace 'DirectoryEntry.ls()' method by 'files' and 'dirs' properties

Description

Replace 'DirectoryEntry.ls()' method by 'files' and 'dirs' properties

and make the retrieval of children from the archive explicit in a
dedicated retrieve_children() method.

Change the API of ProvenanceInteface's content_get_early_dates() and
directory_get_dates_in_isochrone_frontier to expect Iterable instead of
List to prevent having to create unneeded temporary lists from
generators retrieved from 'Directory.files' and '.dirs'.

Details

Provenance
douarddaAuthored on May 19 2021, 4:16 PM
douarddaPushed on Jun 4 2021, 3:31 PM
Differential Revision
D5773: Refactor the isochrone graph computation
Parents
rDPROV47c7327b7d61: Add __str__ methods to RevisionEntry, DirectoryEntry and FileEntry
Branches
Unknown
Tags
Unknown
Build Status
Buildable 21783
Build 33870: test-and-buildJenkins console · Jenkins