Mercurial > hg
comparison mercurial/fileset.py @ 14717:c8ee2729e89f stable
revset and fileset: fix typos in parser error messages
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 22 Jun 2011 01:55:00 +0200 |
parents | 552329013bac |
children | 0c81948636f3 |
comparison
equal
deleted
inserted
replaced
14716:552329013bac | 14717:c8ee2729e89f |
---|---|
280 - < 20k (files less than 20480 bytes) | 280 - < 20k (files less than 20480 bytes) |
281 - >= .5MB (files at least 524288 bytes) | 281 - >= .5MB (files at least 524288 bytes) |
282 - 4k - 1MB (files from 4096 bytes to 1048576 bytes) | 282 - 4k - 1MB (files from 4096 bytes to 1048576 bytes) |
283 """ | 283 """ |
284 | 284 |
285 expr = getstring(x, _("grep requires a pattern")).strip() | 285 expr = getstring(x, _("size requires an expression")).strip() |
286 if '-' in expr: # do we have a range? | 286 if '-' in expr: # do we have a range? |
287 a, b = expr.split('-', 1) | 287 a, b = expr.split('-', 1) |
288 a = _sizetoint(a) | 288 a = _sizetoint(a) |
289 b = _sizetoint(b) | 289 b = _sizetoint(b) |
290 m = lambda x: x >= a and x <= b | 290 m = lambda x: x >= a and x <= b |