Show More
@@ -1879,13 +1879,14 b' def walkchangerevs(repo, match, opts, pr' | |||||
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 |
|
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 = {} |
@@ -2501,7 +2501,7 b' def _stopgraft(ui, repo, graftstate):' | |||||
2501 | ('n', 'line-number', None, _('print matching line numbers')), |
|
2501 | ('n', 'line-number', None, _('print matching line numbers')), | |
2502 | ('r', 'rev', [], |
|
2502 | ('r', 'rev', [], | |
2503 | _('only search files changed within revision range'), _('REV')), |
|
2503 | _('only search files changed within revision range'), _('REV')), | |
2504 | ('', 'allfiles', False, |
|
2504 | ('', 'all-files', False, | |
2505 | _('include all files in the changeset while grepping (EXPERIMENTAL)')), |
|
2505 | _('include all files in the changeset while grepping (EXPERIMENTAL)')), | |
2506 | ('u', 'user', None, _('list the author (long with -v)')), |
|
2506 | ('u', 'user', None, _('list the author (long with -v)')), | |
2507 | ('d', 'date', None, _('list the date (short with -q)')), |
|
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 | if not opts.get('rev') and not diff: |
|
2548 | if not opts.get('rev') and not diff: | |
2549 | opts['rev'] = ["wdir()"] |
|
2549 | opts['rev'] = ["wdir()"] | |
2550 | opts['allfiles'] = True |
|
2550 | opts['all_files'] = True | |
2551 |
|
2551 | |||
2552 | getfile = util.lrucachefunc(repo.file) |
|
2552 | getfile = util.lrucachefunc(repo.file) | |
2553 |
|
2553 |
@@ -313,7 +313,7 b' Show all commands + options' | |||||
313 | debugwireproto: localssh, peer, noreadstderr, nologhandshake, ssh, remotecmd, insecure |
|
313 | debugwireproto: localssh, peer, noreadstderr, nologhandshake, ssh, remotecmd, insecure | |
314 | files: rev, print0, include, exclude, template, subrepos |
|
314 | files: rev, print0, include, exclude, template, subrepos | |
315 | graft: rev, continue, stop, abort, edit, log, no-commit, force, currentdate, currentuser, date, user, tool, dry-run |
|
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 | heads: rev, topo, active, closed, style, template |
|
317 | heads: rev, topo, active, closed, style, template | |
318 | help: extension, command, keyword, system |
|
318 | help: extension, command, keyword, system | |
319 | identify: rev, num, id, branch, tags, bookmarks, ssh, remotecmd, insecure, template |
|
319 | identify: rev, num, id, branch, tags, bookmarks, ssh, remotecmd, insecure, template |
@@ -409,7 +409,7 b' Test for showing working of allfiles fla' | |||||
409 | adding new |
|
409 | adding new | |
410 | $ hg grep -r "." "unmod" |
|
410 | $ hg grep -r "." "unmod" | |
411 | [1] |
|
411 | [1] | |
412 | $ hg grep -r "." "unmod" --allfiles |
|
412 | $ hg grep -r "." "unmod" --all-files | |
413 | um:1:unmod |
|
413 | um:1:unmod | |
414 |
|
414 | |||
415 | $ cd .. |
|
415 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now