Mercurial > hg-stable
diff tests/test-commit.t @ 28864:b0811a9fe67c
date: fix boundary check of negative integer
author | Florent Gallaire <fgallaire@gmail.com> |
---|---|
date | Tue, 12 Apr 2016 00:30:28 +0200 |
parents | 87c6ad2251d8 |
children | d83ca854fa21 |
line wrap: on
line diff
--- a/tests/test-commit.t Sun Apr 10 22:00:34 2016 +0100 +++ b/tests/test-commit.t Tue Apr 12 00:30:28 2016 +0200 @@ -31,17 +31,17 @@ abort: date exceeds 32 bits: -111111111111 [255] $ echo foo >> foo - $ hg commit -d '1901-12-13 20:45:53 +0000' -m commit-7-2 + $ hg commit -d '1901-12-13 20:45:52 +0000' -m commit-7-2 $ echo foo >> foo - $ hg commit -d '-2147483647 0' -m commit-7-3 + $ hg commit -d '-2147483648 0' -m commit-7-3 $ hg log -T '{rev} {date|isodatesec}\n' -l2 - 3 1901-12-13 20:45:53 +0000 - 2 1901-12-13 20:45:53 +0000 - $ hg commit -d '1901-12-13 20:45:52 +0000' -m commit-7 - abort: date exceeds 32 bits: -2147483648 + 3 1901-12-13 20:45:52 +0000 + 2 1901-12-13 20:45:52 +0000 + $ hg commit -d '1901-12-13 20:45:51 +0000' -m commit-7 + abort: date exceeds 32 bits: -2147483649 [255] - $ hg commit -d '-2147483648 0' -m commit-7 - abort: date exceeds 32 bits: -2147483648 + $ hg commit -d '-2147483649 0' -m commit-7 + abort: date exceeds 32 bits: -2147483649 [255] commit added file that has been deleted @@ -67,7 +67,7 @@ dir/file committing manifest committing changelog - committed changeset 4:76aab26859d7 + committed changeset 4:1957363f1ced $ echo > dir.file $ hg add @@ -91,7 +91,7 @@ dir/file committing manifest committing changelog - committed changeset 5:9a50557f1baf + committed changeset 5:a31d8f87544a $ cd .. $ hg commit -m commit-14 does-not-exist @@ -115,7 +115,7 @@ dir/file committing manifest committing changelog - committed changeset 6:4b4c75bf422d + committed changeset 6:32d054c9d085 An empty date was interpreted as epoch origin