Mercurial > hg
comparison tests/test-commit.t @ 13062:e1002cf9fe54 stable
parsedate: abort on negative dates (issue2513)
catches "hg commit -d '-7654321 3600'" (example)
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Wed, 24 Nov 2010 19:31:43 +0100 |
parents | 4fee1fd3de9a |
children | 931a72e00efa |
comparison
equal
deleted
inserted
replaced
13061:7e734ddad2e7 | 13062:e1002cf9fe54 |
---|---|
19 abort: invalid date: 'foo bar' | 19 abort: invalid date: 'foo bar' |
20 [255] | 20 [255] |
21 $ hg commit -d ' 1 4444' -m commit-6 | 21 $ hg commit -d ' 1 4444' -m commit-6 |
22 $ hg commit -d '111111111111 0' -m commit-7 | 22 $ hg commit -d '111111111111 0' -m commit-7 |
23 abort: date exceeds 32 bits: 111111111111 | 23 abort: date exceeds 32 bits: 111111111111 |
24 [255] | |
25 $ hg commit -d '-7654321 3600' -m commit-7 | |
26 abort: negative date value: -7654321 | |
24 [255] | 27 [255] |
25 | 28 |
26 commit added file that has been deleted | 29 commit added file that has been deleted |
27 | 30 |
28 $ echo bar > bar | 31 $ echo bar > bar |