HomePhabricator

grep: move match and diff logic to new module

Authored by yuja.

Description

grep: move match and diff logic to new module

commands.grep() has lots of functions and classes. Let's split it into
reusable components so we can leverage them to implement a revset predicate
for 'hg grep --diff'. I want to do 'hg log -r "diff(pattern)"'.

Details

Committed
yujaSep 9 2020, 2:23 AM
Parents
rHG760bb4d74aad: grep: explicitly pass regexp to closure functions
Branches
Unknown
Tags
Unknown