##// END OF EJS Templates
test-parse-date: move remaining date parsing tests from test-log
Martin Geisler -
r16923:dfaf8698 default
parent child Browse files
Show More
@@ -539,22 +539,6 log -k r1
539 date: Thu Jan 01 00:00:01 1970 +0000
539 date: Thu Jan 01 00:00:01 1970 +0000
540 summary: r1
540 summary: r1
541
541
542 log -d " " (whitespaces only)
543
544 $ hg log -d " "
545 abort: dates cannot consist entirely of whitespace
546 [255]
547
548 log -d -1
549
550 $ hg log -d -1
551
552 Negative ranges
553 $ hg log -d "--2"
554 abort: -2 must be nonnegative (see 'hg help dates')
555 [255]
556
557
558 log -p -l2 --color=always
542 log -p -l2 --color=always
559
543
560 $ hg --config extensions.color= --config color.mode=ansi \
544 $ hg --config extensions.color= --config color.mode=ansi \
@@ -93,6 +93,22 Test 12-hours times
93 standard: Wed Feb 01 13:00:30 2006 +0000
93 standard: Wed Feb 01 13:00:30 2006 +0000
94 $ hg debugdate "1:00:30PM" > /dev/null
94 $ hg debugdate "1:00:30PM" > /dev/null
95
95
96 Normal range
97
98 $ hg log -d -1
99
100 Negative range
101
102 $ hg log -d "--2"
103 abort: -2 must be nonnegative (see 'hg help dates')
104 [255]
105
106 Whitespace only
107
108 $ hg log -d " "
109 abort: dates cannot consist entirely of whitespace
110 [255]
111
96 Test date formats with '>' or '<' accompanied by space characters
112 Test date formats with '>' or '<' accompanied by space characters
97
113
98 $ hg log -d '>' --template '{date|date}\n'
114 $ hg log -d '>' --template '{date|date}\n'
General Comments 0
You need to be logged in to leave comments. Login now