revset: document the regular expression support for tag(name)

This has been supported since 0041ea008c64, in 2.3.
This commit is contained in:
Matt Harbison 2014-03-24 21:27:40 -04:00
parent 2fd618b0ed
commit 60d20455df

View File

@ -1500,6 +1500,10 @@ def _substringmatcher(pattern):
def tag(repo, subset, x):
"""``tag([name])``
The specified tag by name, or all tagged revisions if no name is given.
If `name` starts with `re:`, the remainder of the name is treated as
a regular expression. To match a tag that actually starts with `re:`,
use the prefix `literal:`.
"""
# i18n: "tag" is a keyword
args = getargs(x, 0, 1, _("tag takes one or no arguments"))