##// END OF EJS Templates
fileset: fix generator vs list bug in fast path...
Patrick Mezard -
r17371:1310489e stable
parent child Browse files
Show More
@@ -485,7 +485,7 b' def getfileset(ctx, expr):'
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
@@ -21,3 +21,14 b''
21 [1]
21 [1]
22 $ hg cat -r 1 b
22 $ hg cat -r 1 b
23 1
23 1
24
25 Test fileset
26
27 $ echo 3 > c
28 $ hg ci -Am addmore c
29 $ hg cat 'set:not(b) or a'
30 3
31 $ hg cat 'set:c or b'
32 1
33 3
34
@@ -222,4 +222,7 b' Test with a revision'
222 sub
222 sub
223 $ fileset -r4 'subrepo("sub")'
223 $ fileset -r4 'subrepo("sub")'
224 sub
224 sub
225 $ fileset -r4 'b2 or c1'
226 b2
227 c1
225
228
General Comments 0
You need to be logged in to leave comments. Login now