HomeSoftware Heritage

Rewrite snapshot_get in terms of snapshot_get_branches

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Rewrite snapshot_get in terms of snapshot_get_branches

Summary:
This increases uniformity and reduces code duplication between the two
functions. The addition of the 'next_branch' return value in
snapshot_get_branches allows callers to get branches incrementally in a loop
which is friendlier.

Depends on D545

Test Plan: tests have been updated to add the new next_branch field

Reviewers: anlambert

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

Details

Provenance
olasdAuthored on Oct 17 2018, 4:54 PM
olasdPushed on Oct 17 2018, 5:03 PM
Differential Revision
D546: Rewrite snapshot_get in terms of snapshot_get_branches

Commit No Longer Exists

This commit no longer exists in the repository.