From patchwork Thu May 24 14:42:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [STABLE] help: mention pattern syntax of latesttag() template function From: Yuya Nishihara X-Patchwork-Id: 31837 Message-Id: <6f102e6b25c09d78a868.1527172965@mimosa> To: mercurial-devel@mercurial-scm.org Date: Thu, 24 May 2018 23:42:45 +0900 # HG changeset patch # User Yuya Nishihara # Date 1527171988 -32400 # Thu May 24 23:26:28 2018 +0900 # Branch stable # Node ID 6f102e6b25c09d78a86886423db3ca0c612a59fb # Parent a3b4ccbec269a4ffabdcc681212a36bbbdc4cca8 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 @@ -352,7 +352,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"))