grep: deprecates `--all` flag
authorSangeet Kumar Mishra <mail2sangeetmishra@gmail.com>
Thu, 28 Jun 2018 23:21:55 +0530
changeset 38487 8d9d0d30cfcc
parent 38486 4c0683655599
child 38488 b23ef2f06d98
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
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.