Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/tests/test-commit.t Wed Dec 01 17:50:49 2010 -0600 +++ b/tests/test-commit.t Wed Nov 24 19:31:43 2010 +0100 @@ -22,6 +22,9 @@ $ hg commit -d '111111111111 0' -m commit-7 abort: date exceeds 32 bits: 111111111111 [255] + $ hg commit -d '-7654321 3600' -m commit-7 + abort: negative date value: -7654321 + [255] commit added file that has been deleted