Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 38648:ffd08ec22955
grep: rename --allfiles to --all-files
This matches the config name to be added.
Note that we don't have to keep the old flag since it isn't released yet.
Differential Revision: https://phab.mercurial-scm.org/D3915
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 11 Jul 2018 21:15:52 +0900 |
parents | 9ef10437bb88 |
children | 0d0f8bd692c4 |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Jul 11 13:48:44 2018 +0200 +++ b/mercurial/commands.py Wed Jul 11 21:15:52 2018 +0900 @@ -2501,7 +2501,7 @@ ('n', 'line-number', None, _('print matching line numbers')), ('r', 'rev', [], _('only search files changed within revision range'), _('REV')), - ('', 'allfiles', False, + ('', 'all-files', False, _('include all files in the changeset while grepping (EXPERIMENTAL)')), ('u', 'user', None, _('list the author (long with -v)')), ('d', 'date', None, _('list the date (short with -q)')), @@ -2547,7 +2547,7 @@ if not opts.get('rev') and not diff: opts['rev'] = ["wdir()"] - opts['allfiles'] = True + opts['all_files'] = True getfile = util.lrucachefunc(repo.file)