##// END OF EJS Templates
util: make 'hg log -d --2' abort (issue2734)
Yun Lee -
r13889:9a96efc4 default
parent child Browse files
Show More
@@ -1209,6 +1209,9 b' def matchdate(date):'
1209 1209 days = int(date[1:])
1210 1210 except ValueError:
1211 1211 raise Abort(_("invalid day spec: %s") % date[1:])
1212 if days < 0:
1213 raise Abort(_("%s must be nonnegative (see 'hg help dates')")
1214 % date[1:])
1212 1215 when = makedate()[0] - days * 3600 * 24
1213 1216 return lambda x: x >= when
1214 1217 elif " to " in date:
@@ -534,6 +534,11 b' log -d "<"'
534 534 abort: invalid day spec, use '<DATE'
535 535 [255]
536 536
537 Negative ranges
538 $ hg log -d "--2"
539 abort: -2 must be nonnegative (see 'hg help dates')
540 [255]
541
537 542
538 543 log -p -l2 --color=always
539 544
General Comments 0
You need to be logged in to leave comments. Login now