Show More
@@ -1069,7 +1069,7 b' def parsedate(date, formats=None, defaul' | |||||
1069 | else: |
|
1069 | else: | |
1070 | break |
|
1070 | break | |
1071 | else: |
|
1071 | else: | |
1072 |
raise Abort(_('invalid date: %r |
|
1072 | raise Abort(_('invalid date: %r') % date) | |
1073 | # validate explicit (probably user-specified) date and |
|
1073 | # validate explicit (probably user-specified) date and | |
1074 | # time zone offset. values must fit in signed 32 bits for |
|
1074 | # time zone offset. values must fit in signed 32 bits for | |
1075 | # current 32-bit linux runtimes. timezones go from UTC-12 |
|
1075 | # current 32-bit linux runtimes. timezones go from UTC-12 |
@@ -11,9 +11,9 b' commit date test' | |||||
11 | $ hg commit -d '1 4444444' -m commit-3 |
|
11 | $ hg commit -d '1 4444444' -m commit-3 | |
12 | abort: impossible time zone offset: 4444444 |
|
12 | abort: impossible time zone offset: 4444444 | |
13 | $ hg commit -d '1 15.1' -m commit-4 |
|
13 | $ hg commit -d '1 15.1' -m commit-4 | |
14 |
abort: invalid date: '1\t15.1' |
|
14 | abort: invalid date: '1\t15.1' | |
15 | $ hg commit -d 'foo bar' -m commit-5 |
|
15 | $ hg commit -d 'foo bar' -m commit-5 | |
16 |
abort: invalid date: 'foo bar' |
|
16 | abort: invalid date: 'foo bar' | |
17 | $ hg commit -d ' 1 4444' -m commit-6 |
|
17 | $ hg commit -d ' 1 4444' -m commit-6 | |
18 | $ hg commit -d '111111111111 0' -m commit-7 |
|
18 | $ hg commit -d '111111111111 0' -m commit-7 | |
19 | abort: date exceeds 32 bits: 111111111111 |
|
19 | abort: date exceeds 32 bits: 111111111111 |
@@ -150,7 +150,7 b' quoting needed' | |||||
150 | $ log 'date(' |
|
150 | $ log 'date(' | |
151 | hg: parse error at 5: not a prefix: end |
|
151 | hg: parse error at 5: not a prefix: end | |
152 | $ log 'date(tip)' |
|
152 | $ log 'date(tip)' | |
153 |
abort: invalid date: 'tip' |
|
153 | abort: invalid date: 'tip' | |
154 | $ log '"date"' |
|
154 | $ log '"date"' | |
155 | abort: unknown revision 'date'! |
|
155 | abort: unknown revision 'date'! | |
156 | $ log 'date(2005) and 1::' |
|
156 | $ log 'date(2005) and 1::' |
General Comments 0
You need to be logged in to leave comments.
Login now