2486 ui.status(_("working directory is now at %s\n") % pctx.hex()[:12]) |
2486 ui.status(_("working directory is now at %s\n") % pctx.hex()[:12]) |
2487 return 0 |
2487 return 0 |
2488 |
2488 |
2489 @command('grep', |
2489 @command('grep', |
2490 [('0', 'print0', None, _('end fields with NUL')), |
2490 [('0', 'print0', None, _('end fields with NUL')), |
2491 ('', 'all', None, _('print all revisions that match')), |
2491 ('', 'all', None, _('print all revisions that match (DEPRECATED) ')), |
2492 ('', 'diff', None, _('print all revisions when the term was introduced ' |
2492 ('', 'diff', None, _('print all revisions when the term was introduced ' |
2493 'or removed')), |
2493 'or removed')), |
2494 ('a', 'text', None, _('treat all files as text')), |
2494 ('a', 'text', None, _('treat all files as text')), |
2495 ('f', 'follow', None, |
2495 ('f', 'follow', None, |
2496 _('follow changeset history,' |
2496 _('follow changeset history,' |
2517 |
2517 |
2518 By default, grep prints the most recent revision number for each |
2518 By default, grep prints the most recent revision number for each |
2519 file in which it finds a match. To get it to print every revision |
2519 file in which it finds a match. To get it to print every revision |
2520 that contains a change in match status ("-" for a match that becomes |
2520 that contains a change in match status ("-" for a match that becomes |
2521 a non-match, or "+" for a non-match that becomes a match), use the |
2521 a non-match, or "+" for a non-match that becomes a match), use the |
2522 --diff/--all flag. |
2522 --diff flag. |
2523 |
2523 |
2524 PATTERN can be any Python (roughly Perl-compatible) regular |
2524 PATTERN can be any Python (roughly Perl-compatible) regular |
2525 expression. |
2525 expression. |
2526 |
2526 |
2527 If no FILEs are specified (and -f/--follow isn't set), all files in |
2527 If no FILEs are specified (and -f/--follow isn't set), all files in |