##// END OF EJS Templates
revsetlang: add a getboolean helper function...
Denis Laxalde -
r31997:11f501f0 default
parent child Browse files
Show More
@@ -199,6 +199,12 b' def getinteger(x, err, default=_notset):'
199 199 except ValueError:
200 200 raise error.ParseError(err)
201 201
202 def getboolean(x, err):
203 value = util.parsebool(getsymbol(x))
204 if value is not None:
205 return value
206 raise error.ParseError(err)
207
202 208 def getlist(x):
203 209 if not x:
204 210 return []
General Comments 0
You need to be logged in to leave comments. Login now