HomeSoftware Heritage

Use all snapshots to compute base_snapshot_reverse_branches

Description

Use all snapshots to compute base_snapshot_reverse_branches

base_snapshot_reverse_branches needs to contain all objects that
may be a snapshot target that the remote did not send to us.

Because we now use all snapshots to build the "have" list, such
targets include all targets of snapshots of "parent" origins,
not just the previous snapshot of the current origin.

This typically happens when a forge-fork pull branches from its
parent.

Resolves Sentry issue SWH-LOADER-GIT-102

Details

Provenance
vlorentzAuthored on May 16 2022, 2:26 PM
vlorentzPushed on May 16 2022, 3:23 PM
Differential Revision
D7834: Use all snapshots to compute base_snapshot_reverse_branches
Parents
rDLDGaf41ebde0942: Don't assume all GitClient instances have a 'dumb' attribute
Branches
Unknown
Tags
Unknown
References
tag: v1.8.1
Tasks
Restricted Maniphest Task
Build Status
Buildable 29408
Build 45958: test-and-buildJenkins console · Jenkins