diff --git a/tests/test-log.t b/tests/test-log.t --- a/tests/test-log.t +++ b/tests/test-log.t @@ -539,22 +539,6 @@ log -k r1 date: Thu Jan 01 00:00:01 1970 +0000 summary: r1 -log -d " " (whitespaces only) - - $ hg log -d " " - abort: dates cannot consist entirely of whitespace - [255] - -log -d -1 - - $ hg log -d -1 - -Negative ranges - $ hg log -d "--2" - abort: -2 must be nonnegative (see 'hg help dates') - [255] - - log -p -l2 --color=always $ hg --config extensions.color= --config color.mode=ansi \ diff --git a/tests/test-parse-date.t b/tests/test-parse-date.t --- a/tests/test-parse-date.t +++ b/tests/test-parse-date.t @@ -93,6 +93,22 @@ Test 12-hours times standard: Wed Feb 01 13:00:30 2006 +0000 $ hg debugdate "1:00:30PM" > /dev/null +Normal range + + $ hg log -d -1 + +Negative range + + $ hg log -d "--2" + abort: -2 must be nonnegative (see 'hg help dates') + [255] + +Whitespace only + + $ hg log -d " " + abort: dates cannot consist entirely of whitespace + [255] + Test date formats with '>' or '<' accompanied by space characters $ hg log -d '>' --template '{date|date}\n'