feat(gc): allow num with all-branches#11013
Open
shcheklein wants to merge 1 commit intotreeverse:mainfrom
Open
feat(gc): allow num with all-branches#11013shcheklein wants to merge 1 commit intotreeverse:mainfrom
shcheklein wants to merge 1 commit intotreeverse:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11013 +/- ##
==========================================
+ Coverage 90.68% 90.98% +0.29%
==========================================
Files 504 505 +1
Lines 39795 41132 +1337
Branches 3141 3261 +120
==========================================
+ Hits 36087 37422 +1335
- Misses 3042 3071 +29
+ Partials 666 639 -27 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Author
|
@skshetry test failures are related to tabulate version bump it seems, not touching it here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dvc gcnow supports using-n/--numwith--all-branches, so garbage collection can preserve the last N commits from each branch tip, including when--projectsrepos share the same cache. This keeps the existing shared-cache union behavior and extends revision expansion rather than adding project-specific logic.Example:
dvc gc --all-branches --num 2 --projects ../repo-a ../repo-b --forceDocs will be updated when / if this is approved first.
❗ I have followed the Contributing to DVC checklist.
⌛ 📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
Thank you for the contribution - we'll try to review it as soon as possible. 🙏