mercurial/fileset.py
changeset 24218 cecaec0e8719
parent 23113 c2dd79ad99cb
child 24334 eda2f36889b5
equal deleted inserted replaced
24217:d2b81256db1e 24218:cecaec0e8719
   184     return [f for f in mctx.subset if f in s]
   184     return [f for f in mctx.subset if f in s]
   185 
   185 
   186 def func(mctx, a, b):
   186 def func(mctx, a, b):
   187     if a[0] == 'symbol' and a[1] in symbols:
   187     if a[0] == 'symbol' and a[1] in symbols:
   188         return symbols[a[1]](mctx, b)
   188         return symbols[a[1]](mctx, b)
   189     raise error.ParseError(_("not a function: %s") % a[1])
   189     raise error.UnknownIdentifier(a[1], symbols.keys())
   190 
   190 
   191 def getlist(x):
   191 def getlist(x):
   192     if not x:
   192     if not x:
   193         return []
   193         return []
   194     if x[0] == 'list':
   194     if x[0] == 'list':