Mercurial > hg > mercurial-source
changeset 30816:cd7276f7ea83
merge with stable
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 01 Oct 2016 15:10:38 -0400 |
parents | 3f4e1c033f40 (current diff) 8d74027bd4e7 (diff) |
children | 42ead5b3aa7b |
files | mercurial/commands.py tests/test-check-py3-compat.t tests/test-globalopts.t tests/test-help.t |
diffstat | 6 files changed, 25 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgsigs +++ b/.hgsigs @@ -132,3 +132,4 @@ 519bb4f9d3a47a6e83c2b414d58811ed38f503c2 0 iQIVAwUAV42tNyBXgaxoKi1yAQI/Iw//V0NtxpVD4sClotAwffBVW42Uv+SG+07CJoOuFYnmHZv/plOzXuuJlmm95L00/qyRCCTUyAGxK/eP5cAKP2V99ln6rNhh8gpgvmZlnYjU3gqFv8tCQ+fkwgRiWmgKjRL6/bK9FY5cO7ATLVu3kCkFd8CEgzlAaUqBfkNFxZxLDLvKqRlhXxVXhKjvkKg5DZ6eJqRQY7w3UqqR+sF1rMLtVyt490Wqv7YQKwcvY7MEKTyH4twGLx/RhBpBi+GccVKvWC011ffjSjxqAfQqrrSVt0Ld1Khj2/p1bDDYpTgtdDgCzclSXWEQpmSdFRBF5wYs/pDMUreI/E6mlWkB4hfZZk1NBRPRWYikXwnhU3ziubCGesZDyBYLrK1vT+tf6giseo22YQmDnOftbS999Pcn04cyCafeFuOjkubYaINB25T20GS5Wb4a0nHPRAOOVxzk/m/arwYgF0ZZZDDvJ48TRMDf3XOc1jc5qZ7AN/OQKbvh2B08vObnnPm3lmBY1qOnhwzJxpNiq+Z/ypokGXQkGBfKUo7rWHJy5iXLb3Biv9AhxY9d5pSTjBmTAYJEic3q03ztzlnfMyi+C13+YxFAbSSNGBP8Hejkkz0NvmB1TBuCKpnZA8spxY5rhZ/zMx+cCw8hQvWHHDUURps7SQvZEfrJSCGJFPDHL3vbfK+LNwI= 299546f84e68dbb9bd026f0f3a974ce4bdb93686 0 iQIcBA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KV7hqDCuZPI164YXMxhPNst4XK0/ENhoOE+8iB6
--- a/.hgtags +++ b/.hgtags @@ -145,3 +145,4 @@ 519bb4f9d3a47a6e83c2b414d58811ed38f503c2 3.9-rc 299546f84e68dbb9bd026f0f3a974ce4bdb93686 3.9 ccd436f7db6d5d7b9af89715179b911d031d44f1 3.9.1 +149433e68974eb5c63ccb03f794d8b57339a80c4 3.9.2
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -4355,20 +4355,23 @@ _('[OPTION]... PATTERN [FILE]...'), inferrepo=True) def grep(ui, repo, pattern, *pats, **opts): - """search for a pattern in specified files and revisions - - Search revisions of files for a regular expression. - - This command behaves differently than Unix grep. It only accepts - Python/Perl regexps. It searches repository history, not the - working directory. It always prints the revision number in which a - match appears. - - By default, grep only prints output for the first revision of a + """search revision history for a pattern in specified files + + Search revision history for a regular expression in the specified + files or the entire project. + + By default, grep prints the most recent revision number for each file in which it finds a match. To get it to print every revision - that contains a change in match status ("-" for a match that - becomes a non-match, or "+" for a non-match that becomes a match), - use the --all flag. + that contains a change in match status ("-" for a match that becomes + a non-match, or "+" for a non-match that becomes a match), use the + --all flag. + + PATTERN can be any Python (roughly Perl-compatible) regular + expression. + + If no FILEs are specified (and -f/--follow isn't set), all files in + the repository are searched, including those that don't exist in the + current branch or have been deleted in a prior changeset. Returns 0 if a match is found, 1 otherwise. """
--- a/tests/test-globalopts.t +++ b/tests/test-globalopts.t @@ -307,7 +307,7 @@ files list tracked files forget forget the specified files on the next commit graft copy changes from other branches onto the current branch - grep search for a pattern in specified files and revisions + grep search revision history for a pattern in specified files heads show branch heads help show help for a given topic or a help overview identify identify the working directory or specified revision @@ -390,7 +390,7 @@ files list tracked files forget forget the specified files on the next commit graft copy changes from other branches onto the current branch - grep search for a pattern in specified files and revisions + grep search revision history for a pattern in specified files heads show branch heads help show help for a given topic or a help overview identify identify the working directory or specified revision
--- a/tests/test-help.t +++ b/tests/test-help.t @@ -69,7 +69,7 @@ files list tracked files forget forget the specified files on the next commit graft copy changes from other branches onto the current branch - grep search for a pattern in specified files and revisions + grep search revision history for a pattern in specified files heads show branch heads help show help for a given topic or a help overview identify identify the working directory or specified revision @@ -146,7 +146,7 @@ files list tracked files forget forget the specified files on the next commit graft copy changes from other branches onto the current branch - grep search for a pattern in specified files and revisions + grep search revision history for a pattern in specified files heads show branch heads help show help for a given topic or a help overview identify identify the working directory or specified revision @@ -784,7 +784,7 @@ files list tracked files forget forget the specified files on the next commit graft copy changes from other branches onto the current branch - grep search for a pattern in specified files and revisions + grep search revision history for a pattern in specified files heads show branch heads help show help for a given topic or a help overview identify identify the working directory or specified revision @@ -2201,7 +2201,7 @@ grep </a> </td><td> - search for a pattern in specified files and revisions + search revision history for a pattern in specified files </td></tr> <tr><td> <a href="/help/heads">