Mercurial > public > mercurial-scm > hg
diff tests/test-command-template @ 7682:9c8bbae02e9c
templater: fix age filter to state the obvious on future timestamps
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Thu, 22 Jan 2009 16:07:44 +0100 |
parents | 1fe6f365df2e |
children | 5c4026a289a4 |
line wrap: on
line diff
--- a/tests/test-command-template Thu Jan 22 15:22:37 2009 +0100 +++ b/tests/test-command-template Thu Jan 22 16:07:44 2009 +0100 @@ -30,6 +30,9 @@ echo second > second hg add second hg commit -m second -d '1000000 0' -u 'User Name <user@hostname>' +echo third > third +hg add third +hg commit -m third -d "2020-01-01 10:01" # make sure user/global hgrc does not affect tests echo '[ui]' > .hg/hgrc @@ -101,6 +104,7 @@ hg log --template '{author|person}\n' hg log --template '{author|user}\n' hg log --template '{date|age}\n' > /dev/null || exit 1 +hg log -l1 --template '{date|age}\n' hg log --template '{date|date}\n' hg log --template '{date|isodate}\n' hg log --template '{date|isodatesec}\n'