revset: document the regular expression support for tag(name) stable
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 24 Mar 2014 21:27:40 -0400
branchstable
changeset 20824 c57c9cece645
parent 20817 e5641536e4d5
child 20825 dda11e799529
revset: document the regular expression support for tag(name) This has been supported since 20f55613fb2a, in 2.3.
mercurial/revset.py
--- a/mercurial/revset.py	Thu Mar 20 19:39:05 2014 -0700
+++ b/mercurial/revset.py	Mon Mar 24 21:27:40 2014 -0400
@@ -1500,6 +1500,10 @@
 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"))