Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.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 | 152f4822d210 |
children | 572dff5c946e |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Wed Jul 11 13:48:44 2018 +0200 +++ b/mercurial/cmdutil.py Wed Jul 11 21:15:52 2018 +0900 @@ -1879,13 +1879,14 @@ yielding each context, the iterator will first call the prepare function on each context in the window in forward order.''' - allfiles = opts.get('allfiles') + allfiles = opts.get('all_files') follow = opts.get('follow') or opts.get('follow_first') revs = _walkrevs(repo, opts) if not revs: return [] if allfiles and len(revs) > 1: - raise error.Abort(_("multiple revisions not supported with --allfiles")) + raise error.Abort(_("multiple revisions not supported with " + "--all-files")) wanted = set() slowpath = match.anypats() or (not match.always() and opts.get('removed')) fncache = {}