mercurial/templatekw.py
changeset 38285 8d6109b49b31
parent 38283 0e0d03d09ecd
child 38299 88e7105b5cd9
equal deleted inserted replaced
38284:e72697893c93 38285:8d6109b49b31
   238 
   238 
   239 @templatekeyword('date', requires={'ctx'})
   239 @templatekeyword('date', requires={'ctx'})
   240 def showdate(context, mapping):
   240 def showdate(context, mapping):
   241     """Date information. The date when the changeset was committed."""
   241     """Date information. The date when the changeset was committed."""
   242     ctx = context.resource(mapping, 'ctx')
   242     ctx = context.resource(mapping, 'ctx')
   243     return ctx.date()
   243     return templateutil.date(ctx.date())
   244 
   244 
   245 @templatekeyword('desc', requires={'ctx'})
   245 @templatekeyword('desc', requires={'ctx'})
   246 def showdescription(context, mapping):
   246 def showdescription(context, mapping):
   247     """String. The text of the changeset description."""
   247     """String. The text of the changeset description."""
   248     ctx = context.resource(mapping, 'ctx')
   248     ctx = context.resource(mapping, 'ctx')