HomeSoftware Heritage

Add a function to retrieve a full snapshot

Description

Add a function to retrieve a full snapshot

Summary:
This function wraps the paginating branch listing API to do its work. It's in
swh.storage.algos because it should be done client-side rather than server-side.

The tests are fairly simple, and mostly add a bunch of tooling around hypothesis
to generate data that conforms to the swh data schema. Those things could
probably be adequately moved to a new submodule of swh.model.

Test Plan: new tests added

Reviewers: anlambert

Differential Revision: https://forge.softwareheritage.org/D551

Details

Provenance
olasdAuthored on Oct 17 2018, 9:25 PM
olasdPushed on Oct 18 2018, 5:56 PM
Differential Revision
D551: Add a function to retrieve a full snapshot
Parents
rDSTO7cd7597d3a92: Rewrite snapshot_get in terms of snapshot_get_branches
Branches
Unknown
Tags
Unknown