Show More
@@ -30,7 +30,7 b' the timezone is east of UTC).' | |||
|
30 | 30 | |
|
31 | 31 | The log command also accepts date ranges: |
|
32 | 32 | |
|
33 |
- ``< |
|
|
34 |
- ``> |
|
|
35 |
- `` |
|
|
36 |
- ``- |
|
|
33 | - ``<DATE`` - at or before a given date/time | |
|
34 | - ``>DATE`` - on or after a given date/time | |
|
35 | - ``DATE to DATE`` - a date range, inclusive | |
|
36 | - ``-DAYS`` - within a given number of days of today |
@@ -1196,12 +1196,12 b' def matchdate(date):' | |||
|
1196 | 1196 | raise Abort(_("dates cannot consist entirely of whitespace")) |
|
1197 | 1197 | elif date[0] == "<": |
|
1198 | 1198 | if not date[1:]: |
|
1199 |
raise Abort(_("invalid day spec |
|
|
1199 | raise Abort(_("invalid day spec, use '<DATE'")) | |
|
1200 | 1200 | when = upper(date[1:]) |
|
1201 | 1201 | return lambda x: x <= when |
|
1202 | 1202 | elif date[0] == ">": |
|
1203 | 1203 | if not date[1:]: |
|
1204 |
raise Abort(_("invalid day spec |
|
|
1204 | raise Abort(_("invalid day spec, use '>DATE'")) | |
|
1205 | 1205 | when = lower(date[1:]) |
|
1206 | 1206 | return lambda x: x >= when |
|
1207 | 1207 | elif date[0] == "-": |
@@ -525,13 +525,13 b' log -d -1' | |||
|
525 | 525 | log -d ">" |
|
526 | 526 | |
|
527 | 527 | $ hg log -d ">" |
|
528 |
abort: invalid day spec |
|
|
528 | abort: invalid day spec, use '>DATE' | |
|
529 | 529 | [255] |
|
530 | 530 | |
|
531 | 531 | log -d "<" |
|
532 | 532 | |
|
533 | 533 | $ hg log -d "<" |
|
534 |
abort: invalid day spec |
|
|
534 | abort: invalid day spec, use '<DATE' | |
|
535 | 535 | [255] |
|
536 | 536 | |
|
537 | 537 |
@@ -96,31 +96,31 b' Test 12-hours times' | |||
|
96 | 96 | Test date formats with '>' or '<' accompanied by space characters |
|
97 | 97 | |
|
98 | 98 | $ hg log -d '>' --template '{date|date}\n' |
|
99 |
abort: invalid day spec |
|
|
99 | abort: invalid day spec, use '>DATE' | |
|
100 | 100 | [255] |
|
101 | 101 | $ hg log -d '<' hg log -d '>' --template '{date|date}\n' |
|
102 |
abort: invalid day spec |
|
|
102 | abort: invalid day spec, use '>DATE' | |
|
103 | 103 | [255] |
|
104 | 104 | |
|
105 | 105 | $ hg log -d ' >' --template '{date|date}\n' |
|
106 |
abort: invalid day spec |
|
|
106 | abort: invalid day spec, use '>DATE' | |
|
107 | 107 | [255] |
|
108 | 108 | $ hg log -d ' <' --template '{date|date}\n' |
|
109 |
abort: invalid day spec |
|
|
109 | abort: invalid day spec, use '<DATE' | |
|
110 | 110 | [255] |
|
111 | 111 | |
|
112 | 112 | $ hg log -d '> ' --template '{date|date}\n' |
|
113 |
abort: invalid day spec |
|
|
113 | abort: invalid day spec, use '>DATE' | |
|
114 | 114 | [255] |
|
115 | 115 | $ hg log -d '< ' --template '{date|date}\n' |
|
116 |
abort: invalid day spec |
|
|
116 | abort: invalid day spec, use '<DATE' | |
|
117 | 117 | [255] |
|
118 | 118 | |
|
119 | 119 | $ hg log -d ' > ' --template '{date|date}\n' |
|
120 |
abort: invalid day spec |
|
|
120 | abort: invalid day spec, use '>DATE' | |
|
121 | 121 | [255] |
|
122 | 122 | $ hg log -d ' < ' --template '{date|date}\n' |
|
123 |
abort: invalid day spec |
|
|
123 | abort: invalid day spec, use '<DATE' | |
|
124 | 124 | [255] |
|
125 | 125 | |
|
126 | 126 | $ hg log -d '>02/01' --template '{date|date}\n' |
General Comments 0
You need to be logged in to leave comments.
Login now