mercurial/templater.py
changeset 31850 f0d719e513fc
parent 31807 e6eb86b154c5
child 31880 a0f2d83f8083
equal deleted inserted replaced
31849:5c1abb4bd3ee 31850:f0d719e513fc
   717     return ui.label(thing, label)
   717     return ui.label(thing, label)
   718 
   718 
   719 @templatefunc('latesttag([pattern])')
   719 @templatefunc('latesttag([pattern])')
   720 def latesttag(context, mapping, args):
   720 def latesttag(context, mapping, args):
   721     """The global tags matching the given pattern on the
   721     """The global tags matching the given pattern on the
   722     most recent globally tagged ancestor of this changeset."""
   722     most recent globally tagged ancestor of this changeset.
       
   723     If no such tags exist, the "{tag}" template resolves to
       
   724     the string "null"."""
   723     if len(args) > 1:
   725     if len(args) > 1:
   724         # i18n: "latesttag" is a keyword
   726         # i18n: "latesttag" is a keyword
   725         raise error.ParseError(_("latesttag expects at most one argument"))
   727         raise error.ParseError(_("latesttag expects at most one argument"))
   726 
   728 
   727     pattern = None
   729     pattern = None