equal
deleted
inserted
replaced
293 raise error.ParseError(_('invalid match pattern: %s') % e) |
293 raise error.ParseError(_('invalid match pattern: %s') % e) |
294 return [f for f in mctx.existing() if r.search(mctx.ctx[f].data())] |
294 return [f for f in mctx.existing() if r.search(mctx.ctx[f].data())] |
295 |
295 |
296 def _sizetomax(s): |
296 def _sizetomax(s): |
297 try: |
297 try: |
298 s = s.strip() |
298 s = s.strip().lower() |
299 for k, v in util._sizeunits: |
299 for k, v in util._sizeunits: |
300 if s.endswith(k): |
300 if s.endswith(k): |
301 # max(4k) = 5k - 1, max(4.5k) = 4.6k - 1 |
301 # max(4k) = 5k - 1, max(4.5k) = 4.6k - 1 |
302 n = s[:-len(k)] |
302 n = s[:-len(k)] |
303 inc = 1.0 |
303 inc = 1.0 |