Show More
@@ -1209,6 +1209,9 b' def matchdate(date):' | |||||
1209 | days = int(date[1:]) |
|
1209 | days = int(date[1:]) | |
1210 | except ValueError: |
|
1210 | except ValueError: | |
1211 | raise Abort(_("invalid day spec: %s") % date[1:]) |
|
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 | when = makedate()[0] - days * 3600 * 24 |
|
1215 | when = makedate()[0] - days * 3600 * 24 | |
1213 | return lambda x: x >= when |
|
1216 | return lambda x: x >= when | |
1214 | elif " to " in date: |
|
1217 | elif " to " in date: |
@@ -534,6 +534,11 b' log -d "<"' | |||||
534 | abort: invalid day spec, use '<DATE' |
|
534 | abort: invalid day spec, use '<DATE' | |
535 | [255] |
|
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 | log -p -l2 --color=always |
|
543 | log -p -l2 --color=always | |
539 |
|
544 |
General Comments 0
You need to be logged in to leave comments.
Login now