rustic_core icon indicating copy to clipboard operation
rustic_core copied to clipboard

feat!: Add support for multiple parents

Open aawsome opened this issue 4 months ago • 2 comments

To solve https://github.com/rustic-rs/rustic/issues/493 it will be necessary to add support for multiple parents.

This PR adds this support:

  • The parent option can be now given multiple times
  • In the SnapshotFile also mutliple parent ids can now be saved
  • All trees of all parent snapshots are processed and a suitable entry of any of the parents is taken

aawsome avatar Sep 09 '25 13:09 aawsome

Codecov Report

:x: Patch coverage is 64.78873% with 25 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 43.8%. Comparing base (2b8c4fd) to head (242beeb).

Files with missing lines Patch % Lines
crates/core/src/commands/backup.rs 57.5% 14 Missing :warning:
crates/core/src/archiver/parent.rs 71.4% 10 Missing :warning:
crates/core/src/repofile/snapshotfile.rs 66.6% 1 Missing :warning:
Additional details and impacted files
Files with missing lines Coverage Δ
crates/core/tests/integration.rs 81.4% <ø> (-4.3%) :arrow_down:
crates/core/src/repofile/snapshotfile.rs 56.6% <66.6%> (-0.4%) :arrow_down:
crates/core/src/archiver/parent.rs 63.5% <71.4%> (-1.8%) :arrow_down:
crates/core/src/commands/backup.rs 54.3% <57.5%> (+6.8%) :arrow_up:

... and 20 files with indirect coverage changes

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Sep 09 '25 13:09 codecov[bot]

Didn't thoroughly review, only read over it, but test seems to pass and in general looks good. 🖖

simonsan avatar Nov 08 '25 08:11 simonsan