Show More
@@ -1879,13 +1879,14 b' def walkchangerevs(repo, match, opts, pr' | |||
|
1879 | 1879 | yielding each context, the iterator will first call the prepare |
|
1880 | 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 | 1883 | follow = opts.get('follow') or opts.get('follow_first') |
|
1884 | 1884 | revs = _walkrevs(repo, opts) |
|
1885 | 1885 | if not revs: |
|
1886 | 1886 | return [] |
|
1887 | 1887 | if allfiles and len(revs) > 1: |
|
1888 |
raise error.Abort(_("multiple revisions not supported with |
|
|
1888 | raise error.Abort(_("multiple revisions not supported with " | |
|
1889 | "--all-files")) | |
|
1889 | 1890 | wanted = set() |
|
1890 | 1891 | slowpath = match.anypats() or (not match.always() and opts.get('removed')) |
|
1891 | 1892 | fncache = {} |
@@ -2501,7 +2501,7 b' def _stopgraft(ui, repo, graftstate):' | |||
|
2501 | 2501 | ('n', 'line-number', None, _('print matching line numbers')), |
|
2502 | 2502 | ('r', 'rev', [], |
|
2503 | 2503 | _('only search files changed within revision range'), _('REV')), |
|
2504 | ('', 'allfiles', False, | |
|
2504 | ('', 'all-files', False, | |
|
2505 | 2505 | _('include all files in the changeset while grepping (EXPERIMENTAL)')), |
|
2506 | 2506 | ('u', 'user', None, _('list the author (long with -v)')), |
|
2507 | 2507 | ('d', 'date', None, _('list the date (short with -q)')), |
@@ -2547,7 +2547,7 b' def grep(ui, repo, pattern, *pats, **opt' | |||
|
2547 | 2547 | |
|
2548 | 2548 | if not opts.get('rev') and not diff: |
|
2549 | 2549 | opts['rev'] = ["wdir()"] |
|
2550 | opts['allfiles'] = True | |
|
2550 | opts['all_files'] = True | |
|
2551 | 2551 | |
|
2552 | 2552 | getfile = util.lrucachefunc(repo.file) |
|
2553 | 2553 |
@@ -313,7 +313,7 b' Show all commands + options' | |||
|
313 | 313 | debugwireproto: localssh, peer, noreadstderr, nologhandshake, ssh, remotecmd, insecure |
|
314 | 314 | files: rev, print0, include, exclude, template, subrepos |
|
315 | 315 | graft: rev, continue, stop, abort, edit, log, no-commit, force, currentdate, currentuser, date, user, tool, dry-run |
|
316 | grep: print0, all, diff, text, follow, ignore-case, files-with-matches, line-number, rev, allfiles, user, date, template, include, exclude | |
|
316 | grep: print0, all, diff, text, follow, ignore-case, files-with-matches, line-number, rev, all-files, user, date, template, include, exclude | |
|
317 | 317 | heads: rev, topo, active, closed, style, template |
|
318 | 318 | help: extension, command, keyword, system |
|
319 | 319 | identify: rev, num, id, branch, tags, bookmarks, ssh, remotecmd, insecure, template |
General Comments 0
You need to be logged in to leave comments.
Login now