Mercurial > hg > mercurial-source
changeset 20826:c57c9cece645 stable
revset: document the regular expression support for tag(name)
This has been supported since 20f55613fb2a, in 2.3.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 24 Mar 2014 21:27:40 -0400 (2014-03-25) |
parents | e5641536e4d5 |
children | dda11e799529 |
files | mercurial/revset.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -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"))