-
-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow timespan to be specified with common time units #8626
Conversation
This version supports Y/m/d and H/M/S as you specified. Please let me know if you want to support weeks as well. Also, let me know you want make all units other than m and M case insensitive. |
I think we should match how
|
Yeah, what @jdchristensen says. Consistency within borg is of course more important than consistency to strftime formats (which most users are not aware of anyway). So, ymwd lowercase, HMS uppercase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consistency feedback. thanks for the PR!
This is initial response to comments made on pull request. Will look at --keep-within in a bit.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8626 +/- ##
==========================================
- Coverage 81.83% 81.83% -0.01%
==========================================
Files 74 74
Lines 13319 13340 +21
Branches 1963 1969 +6
==========================================
+ Hits 10900 10917 +17
- Misses 1755 1758 +3
- Partials 664 665 +1 ☔ View full report in Codecov by Sentry. |
BTW, I just saw that you are working in your local master branch. This can often be a problem (e.g. if you need to rebase onto current upstream master for some reason), so try to remember to always checkout a feature/fix branch first (like It looks like we can quickly merge this PR, so no need to change branches here. |
I have enhanced 'prune --keep-within' to support seconds and minutes and checked in the changes. I believe I have also made all requested changes. I cannot run tests locally, there seems to be some issue with the version, the tests all end in a failure complaining about an invalid version number when I run tests locally. So I am just waiting for you to approve the workflows so I can see how many mistakes I made. Thanks for the suggestion to create and operate on a feature branch. I have limited experience contributing to projects that are not my own. |
@KenKundert Likely you did not fetch the tags. setuptools_scm creates the version number based on git tags. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor stuff I found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
found a typo
I finally was able to fetch the tags and the tests now are working locally. So going forward there should be many fewer of my stupid mistakes to review. I apologize for the churn. I think I am basically done, though I will add in support for quarters if you wish. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
#8624