Mercurial > public > mercurial-scm > hg
comparison mercurial/fileset.py @ 24218:cecaec0e8719
fileset: use UnknownIdentifier where appropriate
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 26 Jan 2015 14:31:48 -0500 |
parents | c2dd79ad99cb |
children | eda2f36889b5 |
comparison
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': |