comparison mercurial/fileset.py @ 27518:737ffdabbde9

fileset: add hint for list error to use or
author timeless <timeless@mozdev.org>
date Wed, 23 Dec 2015 17:54:13 +0000
parents c39ecb2b86b3
children 4f8ced23345e
comparison
equal deleted inserted replaced
27517:c60a9c16ae25 27518:737ffdabbde9
126 xl = getset(mctx, x) 126 xl = getset(mctx, x)
127 yl = set(getset(mctx, y)) 127 yl = set(getset(mctx, y))
128 return [f for f in xl if f not in yl] 128 return [f for f in xl if f not in yl]
129 129
130 def listset(mctx, a, b): 130 def listset(mctx, a, b):
131 raise error.ParseError(_("can't use a list in this context")) 131 raise error.ParseError(_("can't use a list in this context"),
132 hint=_('see hg help "filesets.x or y"'))
132 133
133 # symbols are callable like: 134 # symbols are callable like:
134 # fun(mctx, x) 135 # fun(mctx, x)
135 # with: 136 # with:
136 # mctx - current matchctx instance 137 # mctx - current matchctx instance