-
Notifications
You must be signed in to change notification settings - Fork 342
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
add author_date and committer_date revset functions #3887
Conversation
c75fcf2
to
84bc6c7
Compare
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.
Thanks!
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.
chrono-english supports US and UK dialects to disambiguate mm/dd/yy from
dd/mm/yy, but for now we default to US. This should probably be a config
setting.
I don't think it's worth a config option (but I wouldn't personally mind not having support for either little-endian or middle-endian formats for either dates or time, so maybe don't listen to me :))
I would agree that it’s preferable to only support the ISO/RFC‐style |
8275ba0
to
a26f5d3
Compare
I've made the following substantive changes:
Since |
0ab7538
to
b385d6b
Compare
1a0b8de
to
5e1276d
Compare
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.
Thanks!
9c908d3
to
c8c7bcb
Compare
2637b21
to
7fe0f55
Compare
fdd5fd0
to
248a9db
Compare
248a9db
to
e476536
Compare
Creates a DatePattern type that can be created by parsing a string in any format supported by the chrono-english crate, including: - 2024-03-25 - 2024-03-25T00:00:00 - 2024-03-25T00:00:00-08:00 - 2 weeks ago - 5 minutes ago - yesterday - yesterday 5pm - yesterday 10:30 - yesterday 15:30 - tomorrow A `kind` can be specified to indicate whether the pattern should match dates at or after (`after`) or strictly before (`before`) the given instant. chrono-english supports US and UK dialects to disambiguate mm/dd/yy from dd/mm/yy, but for now we default to US. This should probably be a config setting.
a3d80b3
to
e71e2ab
Compare
Author dates and committer dates can be filtered like so: committer_date(before:"1 hour ago") # more than 1 hour ago committer_date(after:"1 hour ago") # 1 hour ago or less A date range can be created by combining revsets. For example, to see any revisions committed yesterday: committer_date(after:"yesterday") & committer_date(before:"today")
e71e2ab
to
a4b024a
Compare
Checklist
If applicable:
CHANGELOG.md