HomeSoftware Heritage

origin layer: retrieve multiple levels of revision history at once

Description

origin layer: retrieve multiple levels of revision history at once

Replace revision_get_parents with revision_get_some_outbound_edges,
which can optionally retrieve more levels of history than just a single
one. This allows us to do way fewer queries on the swh.graph or
swh.storage backend if the revision exists there.

The swh.storage backend does limited recursion, so we still process the
origin in multiple steps to fetch the whole history.

Details

Provenance
olasdAuthored on Aug 12 2022, 11:26 AM
olasdPushed on Aug 16 2022, 12:35 PM
Differential Revision
D8243: All the current swh.provenance changes that are running in production...
Parents
rDPROV68e1907e7f37: Appease pyright by ensuring target_type is bound
Branches
Unknown
Tags
Unknown
Build Status
Buildable 30803
Build 48159: test-and-buildJenkins console · Jenkins