Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revset.py @ 20824: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 |
parents | 96be25f1da45 |
children | 9a09a625bc93 |
comparison
equal
deleted
inserted
replaced
20817:e5641536e4d5 | 20824:c57c9cece645 |
---|---|
1498 return kind, pattern, matcher | 1498 return kind, pattern, matcher |
1499 | 1499 |
1500 def tag(repo, subset, x): | 1500 def tag(repo, subset, x): |
1501 """``tag([name])`` | 1501 """``tag([name])`` |
1502 The specified tag by name, or all tagged revisions if no name is given. | 1502 The specified tag by name, or all tagged revisions if no name is given. |
1503 | |
1504 If `name` starts with `re:`, the remainder of the name is treated as | |
1505 a regular expression. To match a tag that actually starts with `re:`, | |
1506 use the prefix `literal:`. | |
1503 """ | 1507 """ |
1504 # i18n: "tag" is a keyword | 1508 # i18n: "tag" is a keyword |
1505 args = getargs(x, 0, 1, _("tag takes one or no arguments")) | 1509 args = getargs(x, 0, 1, _("tag takes one or no arguments")) |
1506 cl = repo.changelog | 1510 cl = repo.changelog |
1507 if args: | 1511 if args: |