HomeSoftware Heritage

Add to_model() method to from_disk.{Content,Directory}, to convert to canonical…

Description

Add to_model() method to from_disk.{Content,Directory}, to convert to canonical model objects.

They will be used by loaders, so they can deal only with
model objects, instead of having to do the same conversion themselves.

This removes the data and save_path arguments of from_file and
from_disk, as data loading is always deferred from now on.
To access it, users are now expected to either open the data files
themselves, or us .to_model().with_data().

Details

Provenance
vlorentzAuthored on Feb 20 2020, 4:50 PM
vlorentzPushed on Feb 24 2020, 4:06 PM
Differential Revision
D2703: Add to_model() method to from_disk.{Content,Directory}, to convert to canonical model objects.
Parents
rDMODad6a0302c904: Fix tests of special devices.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 10741
Build 16123: test-and-buildJenkins