Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
38647:0f4c2c70e26e | 38648:ffd08ec22955 |
---|---|
1877 | 1877 |
1878 This function returns an iterator yielding contexts. Before | 1878 This function returns an iterator yielding contexts. Before |
1879 yielding each context, the iterator will first call the prepare | 1879 yielding each context, the iterator will first call the prepare |
1880 function on each context in the window in forward order.''' | 1880 function on each context in the window in forward order.''' |
1881 | 1881 |
1882 allfiles = opts.get('allfiles') | 1882 allfiles = opts.get('all_files') |
1883 follow = opts.get('follow') or opts.get('follow_first') | 1883 follow = opts.get('follow') or opts.get('follow_first') |
1884 revs = _walkrevs(repo, opts) | 1884 revs = _walkrevs(repo, opts) |
1885 if not revs: | 1885 if not revs: |
1886 return [] | 1886 return [] |
1887 if allfiles and len(revs) > 1: | 1887 if allfiles and len(revs) > 1: |
1888 raise error.Abort(_("multiple revisions not supported with --allfiles")) | 1888 raise error.Abort(_("multiple revisions not supported with " |
1889 "--all-files")) | |
1889 wanted = set() | 1890 wanted = set() |
1890 slowpath = match.anypats() or (not match.always() and opts.get('removed')) | 1891 slowpath = match.anypats() or (not match.always() and opts.get('removed')) |
1891 fncache = {} | 1892 fncache = {} |
1892 change = repo.__getitem__ | 1893 change = repo.__getitem__ |
1893 | 1894 |