diff 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
line wrap: on
line diff
--- a/mercurial/fileset.py	Wed Aug 15 22:28:32 2012 +0200
+++ b/mercurial/fileset.py	Wed Aug 15 22:50:23 2012 +0200
@@ -485,7 +485,7 @@
             subset.extend(c)
     else:
         status = None
-        subset = ctx.walk(ctx.match([]))
+        subset = list(ctx.walk(ctx.match([])))
 
     return getset(matchctx(ctx, subset, status), tree)