Mercurial > hg
comparison tests/test-parse-date.t @ 36234:48783333f45c stable
date: fix parsing months
Thanks nemo for discovering this on #mercurial IRC channel.
Test Plan:
Add a test. It fails before this patch:
```
+ hg: parse error: invalid date: 'Feb 2018'
+ hg: parse error: invalid date: 'Apr 2018'
+ hg: parse error: invalid date: 'Jun 2018'
+ hg: parse error: invalid date: 'Sep 2018'
+ hg: parse error: invalid date: 'Nov 2018'
```
Differential Revision: https://phab.mercurial-scm.org/D2289
author | Jun Wu <quark@fb.com> |
---|---|
date | Fri, 16 Feb 2018 13:25:39 -0800 |
parents | bb18728ea617 |
children | 0a10f142299d |
comparison
equal
deleted
inserted
replaced
36001:9f454a717c43 | 36234:48783333f45c |
---|---|
284 internal: 1469621421 0 | 284 internal: 1469621421 0 |
285 standard: Wed Jul 27 12:10:21 2016 +0000 | 285 standard: Wed Jul 27 12:10:21 2016 +0000 |
286 $ hg debugdate "2016-07-27 121021Z" | 286 $ hg debugdate "2016-07-27 121021Z" |
287 internal: 1469621421 0 | 287 internal: 1469621421 0 |
288 standard: Wed Jul 27 12:10:21 2016 +0000 | 288 standard: Wed Jul 27 12:10:21 2016 +0000 |
289 | |
290 Test parsing months | |
291 | |
292 $ for i in Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec; do | |
293 > hg log -d "$i 2018" -r null | |
294 > done |