Mercurial > hg
diff tests/test-journal.t @ 37770:31750413f8d7
formatter: convert timestamp to int
Spotted while porting jsonchangeset printer to formatter. A timestamp may be
float type, but its meaningful part is just int.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 13 Apr 2018 22:58:49 +0900 |
parents | cb70be32f5f7 |
children | dea771e63c3c |
line wrap: on
line diff
--- a/tests/test-journal.t Tue Apr 17 03:07:01 2018 +0200 +++ b/tests/test-journal.t Fri Apr 13 22:58:49 2018 +0900 @@ -147,7 +147,7 @@ [ { "command": "up", - "date": [5.0, 0], + "date": [5, 0], "name": ".", "newhashes": ["1e6c11564562b4ed919baca798bc4338bd299d6a"], "oldhashes": ["cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b"], @@ -155,7 +155,7 @@ }, { "command": "up 0", - "date": [2.0, 0], + "date": [2, 0], "name": ".", "newhashes": ["cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b"], "oldhashes": ["1e6c11564562b4ed919baca798bc4338bd299d6a"], @@ -163,7 +163,7 @@ }, { "command": "commit -Aqm b", - "date": [1.0, 0], + "date": [1, 0], "name": ".", "newhashes": ["1e6c11564562b4ed919baca798bc4338bd299d6a"], "oldhashes": ["cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b"], @@ -171,7 +171,7 @@ }, { "command": "commit -Aqm a", - "date": [0.0, 0], + "date": [0, 0], "name": ".", "newhashes": ["cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b"], "oldhashes": ["0000000000000000000000000000000000000000"],