Mercurial > hg-stable
comparison mercurial/fileset.py @ 14690:15faf0e66909 stable
fileset: add missing whitespace around operator
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 19 Jun 2011 11:43:40 +0200 |
parents | 25e4d2f35965 |
children | 848a6658069e |
comparison
equal
deleted
inserted
replaced
14689:25e4d2f35965 | 14690:15faf0e66909 |
---|---|
303 a = _sizetoint(expr[1:]) | 303 a = _sizetoint(expr[1:]) |
304 m = lambda x: x > a | 304 m = lambda x: x > a |
305 elif expr[0].isdigit or expr[0] == '.': | 305 elif expr[0].isdigit or expr[0] == '.': |
306 a = _sizetoint(expr) | 306 a = _sizetoint(expr) |
307 b = _sizetomax(expr) | 307 b = _sizetomax(expr) |
308 m = lambda x: x >=a and x <= b | 308 m = lambda x: x >= a and x <= b |
309 else: | 309 else: |
310 raise error.ParseError(_("couldn't parse size"), expr) | 310 raise error.ParseError(_("couldn't parse size"), expr) |
311 | 311 |
312 return [f for f in mctx.subset if m(mctx.ctx[f].size())] | 312 return [f for f in mctx.subset if m(mctx.ctx[f].size())] |
313 | 313 |