equal
deleted
inserted
replaced
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 |