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