##// 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 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,6 +135,10 b' Test files properties'
135 $ fileset 'size("bar")'
135 $ fileset 'size("bar")'
136 hg: parse error: couldn't parse size: bar
136 hg: parse error: couldn't parse size: bar
137 [255]
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 $ fileset 'size(1k)'
142 $ fileset 'size(1k)'
139 1k
143 1k
140 $ fileset '(1k or 2k) and size("< 2k")'
144 $ fileset '(1k or 2k) and size("< 2k")'
General Comments 0
You need to be logged in to leave comments. Login now