Mercurial > evolve
comparison hgext3rd/topic/revset.py @ 6222:6020b7e92a86
topic: update topic() revset docstring, mention hg help
I was curious why we don't support glob patterns, only re. But turns out it's
like this in upstream (e.g. branch revset) as well, so let's point to the
relevant help page.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 08 Apr 2022 02:19:50 +0300 |
parents | a1a9e6e43d4c |
children | a2491c578d2b |
comparison
equal
deleted
inserted
replaced
6221:a1a9e6e43d4c | 6222:6020b7e92a86 |
---|---|
24 @revsetpredicate(b'topic([string or set])') | 24 @revsetpredicate(b'topic([string or set])') |
25 def topicset(repo, subset, x): | 25 def topicset(repo, subset, x): |
26 """All changesets with the specified topic or the topics of the given | 26 """All changesets with the specified topic or the topics of the given |
27 changesets. Without the argument, all changesets with any topic specified. | 27 changesets. Without the argument, all changesets with any topic specified. |
28 | 28 |
29 If `string` starts with `re:` the remainder of the name is treated | 29 Pattern matching is supported for `string`. See |
30 as a regular expression. | 30 :hg:`help revisions.patterns`. |
31 """ | 31 """ |
32 args = revset.getargs(x, 0, 1, b'topic takes one or no arguments') | 32 args = revset.getargs(x, 0, 1, b'topic takes one or no arguments') |
33 | 33 |
34 mutable = revset._notpublic(repo, revset.fullreposet(repo), ()) | 34 mutable = revset._notpublic(repo, revset.fullreposet(repo), ()) |
35 | 35 |