HomeSoftware Heritage

Refactor the model

Description

Refactor the model

  • move all *Entry model classes in model.py,
  • kill the useless TreeEntry base class,
  • do not keep the archive instance as instance attribute of model objects, instead
  • implement "iterators" as explicit methods taking an ArchiveInterface object as argument,
  • refactor the code in provenance.py accordingly.

Details

Provenance
douarddaAuthored on Mar 30 2021, 2:49 PM
douarddaPushed on Apr 19 2021, 4:55 PM
Differential Revision
D5387: Refactor the model and simplify a bit origin.py
Parents
rDPROV7eaeebb6091a: Simplify a bit origin.py
Branches
Unknown
Tags
Unknown
Build Status
Buildable 20849
Build 32354: test-and-buildJenkins console · Jenkins