changeset 6719:42dbf9548bc6

test-commit: test unset date is not read as epoch origin
author Patrick Mezard <pmezard@gmail.com>
date Mon, 23 Jun 2008 10:36:00 +0200
parents 4386a7706828
children 084c9f1ef2bd
files tests/test-commit
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-commit	Sat Jun 21 15:27:51 2008 +0200
+++ b/tests/test-commit	Mon Jun 23 10:36:00 2008 +0200
@@ -7,6 +7,10 @@
 hg add foo
 HGEDITOR=true hg commit -m ""
 hg commit -d '0 0' -m commit-1
+# An empty date was interpreted as epoch origin
+echo foo >> foo
+hg commit -d '' -m commit-no-date
+hg tip --template '{date|isodate}\n' | grep '1970'
 echo foo >> foo
 hg commit -d '1 4444444' -m commit-3
 hg commit -d '1	15.1' -m commit-4