From 60d20455df46dc3d51f753eea0cc6d6270d87c0d Mon Sep 17 00:00:00 2001 From: Matt Harbison Date: Mon, 24 Mar 2014 21:27:40 -0400 Subject: [PATCH] revset: document the regular expression support for tag(name) This has been supported since 0041ea008c64, in 2.3. --- mercurial/revset.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mercurial/revset.py b/mercurial/revset.py index 9f7baef08f..088beba115 100644 --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -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"))