# HG changeset patch # User Yuya Nishihara # Date 2018-05-24 14:26:28 # Node ID bd7a3fa71a72666691b8b77e6bf03be1d2273391 # Parent c3960c7e66fad7436f1a550ef1de693a635faa3a help: mention pattern syntax of latesttag() template function diff --git a/mercurial/templatefuncs.py b/mercurial/templatefuncs.py --- a/mercurial/templatefuncs.py +++ b/mercurial/templatefuncs.py @@ -360,7 +360,9 @@ def latesttag(context, mapping, args): """The global tags matching the given pattern on the most recent globally tagged ancestor of this changeset. If no such tags exist, the "{tag}" template resolves to - the string "null".""" + the string "null". See :hg:`help revisions.patterns` for the pattern + syntax. + """ if len(args) > 1: # i18n: "latesttag" is a keyword raise error.ParseError(_("latesttag expects at most one argument"))