Size: 746
Comment:
|
Size: 654
Comment: State that date support was added and docs are missing
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
We should be able to do more with dates. In particular: | This is no longer a plan, but implemented as of Mercurial 0.9.3, but documentation is still missing. |
Line 3: | Line 3: |
Logging: | hg log: |
Line 5: | Line 5: |
We should support a -d switch to show log entries from particular dates. Formats we should support: | There is a -d/--date switch to show log entries from particular dates. Supported formats: |
Line 15: | Line 15: |
Checkout/Update/Merge/Revert: | hg update/revert: |
Line 17: | Line 17: |
Again, we should support a -d switch, which results in scanning the log for the first matching changeset. This is usually what people want. Here, and elsewhere, we should allow dates without hours, minutes, or years. |
-d/--date results in scanning the log for the first matching changeset. This is usually what people want. |
This is no longer a plan, but implemented as of Mercurial 0.9.3, but documentation is still missing.
hg log:
There is a -d/--date switch to show log entries from particular dates. Supported formats:
- "{date}" - a single date
"<{date}" - on or before a given date
">{date}" - on or after a given date
- "{date} to {date}" - a date range, inclusive
- "-{days}" - within a given number of days of today
We'll need to scan the entire changelog as there's no guarantee that there's any date ordering.
hg update/revert:
-d/--date results in scanning the log for the first matching changeset. This is usually what people want.