##// END OF EJS Templates
fileset: actually implement 'minusset'...
Patrick Mezard -
r17363:5d9e2031 stable
parent child Browse files
Show More
@@ -107,6 +107,11 b' def notset(mctx, x):'
107 107 s = set(getset(mctx, x))
108 108 return [r for r in mctx.subset if r not in s]
109 109
110 def minusset(mctx, x, y):
111 xl = getset(mctx, x)
112 yl = set(getset(mctx, y))
113 return [f for f in xl if f not in yl]
114
110 115 def listset(mctx, a, b):
111 116 raise error.ParseError(_("can't use a list in this context"))
112 117
@@ -406,6 +411,7 b' methods = {'
406 411 'symbol': stringset,
407 412 'and': andset,
408 413 'or': orset,
414 'minus': minusset,
409 415 'list': listset,
410 416 'group': getset,
411 417 'not': notset,
@@ -36,4 +36,6 b' Test operators and basic patterns'
36 36 b1
37 37 $ fileset '! ("a*")'
38 38 b1
39 $ fileset 'a* - a1'
40 a2
39 41
General Comments 0
You need to be logged in to leave comments. Login now