##// END OF EJS Templates
fileset: add hint for list error to use or
timeless -
r27518:737ffdab default
parent child Browse files
Show More
@@ -128,7 +128,8 b' def minusset(mctx, x, y):'
128 128 return [f for f in xl if f not in yl]
129 129
130 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 134 # symbols are callable like:
134 135 # fun(mctx, x)
@@ -135,6 +135,10 b' Test files properties'
135 135 $ fileset 'size("bar")'
136 136 hg: parse error: couldn't parse size: bar
137 137 [255]
138 $ fileset '(1k, 2k)'
139 hg: parse error: can't use a list in this context
140 (see hg help "filesets.x or y")
141 [255]
138 142 $ fileset 'size(1k)'
139 143 1k
140 144 $ fileset '(1k or 2k) and size("< 2k")'
General Comments 0
You need to be logged in to leave comments. Login now