rustic_core
rustic_core copied to clipboard
feat!: Add support for multiple parents
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
parentoption can be now given multiple times - In the
SnapshotFilealso 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
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).
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: |
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Didn't thoroughly review, only read over it, but test seems to pass and in general looks good. 🖖