mercurial/commands.py
changeset 38652 bfcd5c7cbf9a
parent 38651 5e4027db52f4
child 38653 aabc01da9834
equal deleted inserted replaced
38651:5e4027db52f4 38652:bfcd5c7cbf9a
  2513     """search revision history for a pattern in specified files
  2513     """search revision history for a pattern in specified files
  2514 
  2514 
  2515     Search revision history for a regular expression in the specified
  2515     Search revision history for a regular expression in the specified
  2516     files or the entire project.
  2516     files or the entire project.
  2517 
  2517 
  2518     By default, grep searches the expression on the working directory.
  2518     By default, grep prints the most recent revision number for each
  2519     To search history and show the most recent revision number for each
  2519     file in which it finds a match. To get it to print every revision
  2520     file in which it finds a match, use :hg:`grep -r tip:0`.
  2520     that contains a change in match status ("-" for a match that becomes
  2521     To get it to print every revision that contains a change in match status
  2521     a non-match, or "+" for a non-match that becomes a match), use the
  2522     ("-" for a match that becomes a non-match, or "+" for a non-match that
  2522     --diff flag.
  2523     becomes a match), use the --diff flag.
       
  2524 
  2523 
  2525     PATTERN can be any Python (roughly Perl-compatible) regular
  2524     PATTERN can be any Python (roughly Perl-compatible) regular
  2526     expression.
  2525     expression.
  2527 
  2526 
  2528     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