mercurial/templateutil.py
changeset 38447 b6294c113794
parent 38299 88e7105b5cd9
child 38448 dae829b4de78
equal deleted inserted replaced
38446:5b04a0c30f3f 38447:b6294c113794
   348         if callable(gen):
   348         if callable(gen):
   349             return gen()
   349             return gen()
   350         return gen
   350         return gen
   351 
   351 
   352     def tobool(self, context, mapping):
   352     def tobool(self, context, mapping):
   353         return bool(self.tovalue(context, mapping))
   353         w = makewrapped(context, mapping, self._value)
       
   354         return w.tobool(context, mapping)
   354 
   355 
   355     def tovalue(self, context, mapping):
   356     def tovalue(self, context, mapping):
   356         return _unthunk(context, mapping, self._value)
   357         return _unthunk(context, mapping, self._value)
   357 
   358 
   358 class _mappingsequence(wrapped):
   359 class _mappingsequence(wrapped):