Page MenuHomeSoftware Heritage

Rewrite snapshot_get in terms of snapshot_get_branches
ClosedPublic

Authored by olasd on Oct 17 2018, 4:56 PM.

Details

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

Diff Detail

Repository
rDSTO Storage manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Oct 17 2018, 5:01 PM
This revision was automatically updated to reflect the committed changes.