[PATCH 2 of 3] revset: stop lowercasing the regex pattern for 'author'
Yuya Nishihara
yuya at tcha.org
Thu Jan 12 08:19:09 EST 2017
On Thu, 12 Jan 2017 00:43:02 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1484192530 18000
> # Wed Jan 11 22:42:10 2017 -0500
> # Node ID 41eac69037f03733374ea658a6a13de3973860bc
> # Parent 73c65ceadc057eab288061b44e18254f674e88c6
> revset: stop lowercasing the regex pattern for 'author'
Queued 1 and 3, thanks.
> -def _substringmatcher(pattern):
> - kind, pattern, matcher = util.stringmatcher(pattern)
> +def _substringmatcher(pattern, casesensitive=True):
> + kind, pattern, matcher = util.stringmatcher(pattern,
> + casesensitive=casesensitive)
> if kind == 'literal':
> - matcher = lambda s: pattern in s
> + pattern = encoding.lower(pattern)
> + matcher = lambda s: pattern in encoding.lower(s)
> return kind, pattern, matcher
The 'literal' substring match is always case-insensitive though that isn't
a problem right now.
Can you send new version of this?
More information about the Mercurial-devel
mailing list