# HG changeset patch # User Patrick Mezard # Date 2008-06-23 08:36:00 # Node ID 42dbf9548bc6c55a5437a5f31dba78b65aabe76e # Parent 4386a7706828ceb3abf256fcb86a39a65965c910 test-commit: test unset date is not read as epoch origin diff --git a/tests/test-commit b/tests/test-commit --- a/tests/test-commit +++ b/tests/test-commit @@ -7,6 +7,10 @@ echo foo > foo 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