Mercurial > hg
comparison mercurial/help/revisions.txt @ 30784:5dd67f0993ce
help: eliminate duplicate text for revset string patterns
There's no reason to duplicate this so many times, and it's likely an instance
will be missed if support for a new pattern is added and documented. The
stringmatcher is mostly used by revsets, though it is also used for the 'tag'
related templates, and namespace filtering in the journal extension. So maybe
there's a better place to document it. `hg help patterns` seems inappropriate,
because that is all file pattern matching.
While here, indicate how to perform case insensitive regex searches.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 07 Jan 2017 23:35:35 -0500 |
parents | c2cbc1b050db |
children | 091d6b9157da |
comparison
equal
deleted
inserted
replaced
30783:931a60880df4 | 30784:5dd67f0993ce |
---|---|
116 | 116 |
117 There is a single postfix operator: | 117 There is a single postfix operator: |
118 | 118 |
119 ``x^`` | 119 ``x^`` |
120 Equivalent to ``x^1``, the first parent of each changeset in x. | 120 Equivalent to ``x^1``, the first parent of each changeset in x. |
121 | |
122 Patterns | |
123 ======== | |
124 | |
125 Where noted, predicates that perform string matching can accept a pattern | |
126 string. The pattern may be either a literal, or a regular expression. If the | |
127 pattern starts with ``re:``, the remainder of the pattern is treated as a | |
128 regular expression. Otherwise, it is treated as a literal. To match a pattern | |
129 that actually starts with ``re:``, use the prefix ``literal:``. | |
130 | |
131 Matching is case-sensitive, unless otherwise noted. To perform a case- | |
132 insensitive match on a case-sensitive predicate, use a regular expression, | |
133 prefixed with ``(?i)``. | |
134 | |
135 For example:: | |
136 | |
137 ``tag(r're:(?i)release')`` matches "release" or "RELEASE" or "Release", etc | |
121 | 138 |
122 Predicates | 139 Predicates |
123 ========== | 140 ========== |
124 | 141 |
125 The following predicates are supported: | 142 The following predicates are supported: |