[PATCH STABLE] help: mention pattern syntax of latesttag() template function
Yuya Nishihara
yuya at tcha.org
Thu May 24 14:42:45 UTC 2018
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# 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"))
More information about the Mercurial-devel
mailing list