Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/templatefuncs.py @ 38177:bd7a3fa71a72
help: mention pattern syntax of latesttag() template function
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 24 May 2018 23:26:28 +0900 |
parents | faa41fd282d1 |
children | d48b80d58848 |
comparison
equal
deleted
inserted
replaced
38176:c3960c7e66fa | 38177:bd7a3fa71a72 |
---|---|
358 @templatefunc('latesttag([pattern])') | 358 @templatefunc('latesttag([pattern])') |
359 def latesttag(context, mapping, args): | 359 def latesttag(context, mapping, args): |
360 """The global tags matching the given pattern on the | 360 """The global tags matching the given pattern on the |
361 most recent globally tagged ancestor of this changeset. | 361 most recent globally tagged ancestor of this changeset. |
362 If no such tags exist, the "{tag}" template resolves to | 362 If no such tags exist, the "{tag}" template resolves to |
363 the string "null".""" | 363 the string "null". See :hg:`help revisions.patterns` for the pattern |
364 syntax. | |
365 """ | |
364 if len(args) > 1: | 366 if len(args) > 1: |
365 # i18n: "latesttag" is a keyword | 367 # i18n: "latesttag" is a keyword |
366 raise error.ParseError(_("latesttag expects at most one argument")) | 368 raise error.ParseError(_("latesttag expects at most one argument")) |
367 | 369 |
368 pattern = None | 370 pattern = None |