# HG changeset patch # User Sangeet Kumar Mishra # Date 1530208315 -19800 # Node ID 8d9d0d30cfcc18925b3955f1d54fa5d5cf5abb93 # Parent 4c0683655599c5c7874e68d793bd9a26f055b35f grep: deprecates `--all` flag As the name "all" is a misnomer for an option that searches on diffs of revisions, we are moving to diff flag from all, deprecating it in the process. Differential Revision: https://phab.mercurial-scm.org/D3825 diff -r 4c0683655599 -r 8d9d0d30cfcc mercurial/commands.py --- a/mercurial/commands.py Tue Jun 26 10:02:01 2018 -0700 +++ b/mercurial/commands.py Thu Jun 28 23:21:55 2018 +0530 @@ -2488,7 +2488,7 @@ @command('grep', [('0', 'print0', None, _('end fields with NUL')), - ('', 'all', None, _('print all revisions that match')), + ('', 'all', None, _('print all revisions that match (DEPRECATED) ')), ('', 'diff', None, _('print all revisions when the term was introduced ' 'or removed')), ('a', 'text', None, _('treat all files as text')), @@ -2519,7 +2519,7 @@ file in which it finds a match. To get it to print every revision that contains a change in match status ("-" for a match that becomes a non-match, or "+" for a non-match that becomes a match), use the - --diff/--all flag. + --diff flag. PATTERN can be any Python (roughly Perl-compatible) regular expression.