HomePhabricator

stringutil: add function to compile stringmatcher pattern into regexp

Authored by yuja.

Description

stringutil: add function to compile stringmatcher pattern into regexp

Prepares for adding a revset predicate for "grep --diff". The grep logic
needs a regexp object instead of a match function.

Details

Committed
yujaOct 5 2020, 7:40 AM
Parents
rHGedfc5820aae7: py3: fix stringmatcher() to byte-stringify exception message
Branches
Unknown
Tags
Unknown