Patchwork [STABLE] help: mention pattern syntax of latesttag() template function

login
register
mail settings
Submitter Yuya Nishihara
Date May 24, 2018, 2:42 p.m.
Message ID <6f102e6b25c09d78a868.1527172965@mimosa>
Download mbox | patch
Permalink /patch/31837/
State Accepted
Headers show

Comments

Yuya Nishihara - May 24, 2018, 2:42 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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

Patch

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"))