mercurial/templater.py
changeset 36595 2da414105809
parent 36591 121a20e5da56
child 36596 b5d39a09656a
equal deleted inserted replaced
36594:59ee648870a7 36595:2da414105809
  1127             revs = revsetcache[raw]
  1127             revs = revsetcache[raw]
  1128         else:
  1128         else:
  1129             revs = query(raw)
  1129             revs = query(raw)
  1130             revs = list(revs)
  1130             revs = list(revs)
  1131             revsetcache[raw] = revs
  1131             revsetcache[raw] = revs
  1132 
  1132     return templatekw.showrevslist(context, mapping, "revision", revs)
  1133     # TODO: pass (context, mapping) pair to keyword function
       
  1134     props = context._resources.copy()
       
  1135     props.update(mapping)
       
  1136     return templatekw.showrevslist("revision", revs,
       
  1137                                    **pycompat.strkwargs(props))
       
  1138 
  1133 
  1139 @templatefunc('rstdoc(text, style)')
  1134 @templatefunc('rstdoc(text, style)')
  1140 def rstdoc(context, mapping, args):
  1135 def rstdoc(context, mapping, args):
  1141     """Format reStructuredText."""
  1136     """Format reStructuredText."""
  1142     if len(args) != 2:
  1137     if len(args) != 2: