Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/fileset.py @ 17371:1310489eb5d6 stable
fileset: fix generator vs list bug in fast path
$ hg debugfileset 'a or b'
would only return a or b but not both because the base file list was a
generator instead of a replayable sequence.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Wed, 15 Aug 2012 22:50:23 +0200 |
parents | 01cc267fc105 |
children | 6252b4f1c4b4 |
comparison
equal
deleted
inserted
replaced
17370:3fe199579323 | 17371:1310489eb5d6 |
---|---|
483 subset = [] | 483 subset = [] |
484 for c in status: | 484 for c in status: |
485 subset.extend(c) | 485 subset.extend(c) |
486 else: | 486 else: |
487 status = None | 487 status = None |
488 subset = ctx.walk(ctx.match([])) | 488 subset = list(ctx.walk(ctx.match([]))) |
489 | 489 |
490 return getset(matchctx(ctx, subset, status), tree) | 490 return getset(matchctx(ctx, subset, status), tree) |
491 | 491 |
492 # tell hggettext to extract docstrings from these functions: | 492 # tell hggettext to extract docstrings from these functions: |
493 i18nfunctions = symbols.values() | 493 i18nfunctions = symbols.values() |