tests/test-commit.t
changeset 28825 87c6ad2251d8
parent 26742 bec1a579ebc4
child 28864 b0811a9fe67c
--- a/tests/test-commit.t	Wed Apr 06 19:08:04 2016 +0000
+++ b/tests/test-commit.t	Fri Apr 08 14:11:03 2016 +0200
@@ -27,8 +27,21 @@
   $ 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
+  $ hg commit -d '-111111111111 0' -m commit-7
+  abort: date exceeds 32 bits: -111111111111
+  [255]
+  $ echo foo >> foo
+  $ hg commit -d '1901-12-13 20:45:53 +0000' -m commit-7-2
+  $ echo foo >> foo
+  $ hg commit -d '-2147483647 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
+  [255]
+  $ hg commit -d '-2147483648 0' -m commit-7
+  abort: date exceeds 32 bits: -2147483648
   [255]
 
 commit added file that has been deleted
@@ -54,7 +67,7 @@
   dir/file
   committing manifest
   committing changelog
-  committed changeset 2:d2a76177cb42
+  committed changeset 4:76aab26859d7
 
   $ echo > dir.file
   $ hg add
@@ -78,7 +91,7 @@
   dir/file
   committing manifest
   committing changelog
-  committed changeset 3:1cd62a2d8db5
+  committed changeset 5:9a50557f1baf
   $ cd ..
 
   $ hg commit -m commit-14 does-not-exist
@@ -102,7 +115,7 @@
   dir/file
   committing manifest
   committing changelog
-  committed changeset 4:49176991390e
+  committed changeset 6:4b4c75bf422d
 
 An empty date was interpreted as epoch origin