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WXWv74ijIE7OApotmutM9buTvdOLdZddBzFPIjykc6cXO+W4E0kl6u9/OHtaZ3Nynh0ejBRafRWAVw2yU3T9SgQyICsmYWJCThkj14WqCJr2b7jfGlg9MkQOUG6/3f4xz2R3SgyUD8KiGsq/vdBE53zh0YA9gppLoum6AY+z61G1NhVGlrtps90txZBehuARUUz2dJC0pBMRy8XFwXMewDSIe6ATg25pHZsxHfhcalBpJncBl8pORs7oQl+GKBVxlnV4jm1pCzLU= | |
|
135 | 149433e68974eb5c63ccb03f794d8b57339a80c4 0 iQIcBAABAgAGBQJX8AfCAAoJELnJ3IJKpb3VnNAP/3umS8tohcZTr4m6DJm9u4XGr2m3FWQmjTEfimGpsOuBC8oCgsq0eAlORYcV68zDax+vQHQu3pqfPXaX+y4ZFDuz0ForNRiPJn+Q+tj1+NrOT1e8h4gH0nSK4rDxEGaa6x01fyC/xQMqN6iNfzbLLB7+WadZlyBRbHaUeZFDlPxPDf1rjDpu1vqwtOrVzSxMasRGEceiUegwsFdFMAefCq0ya/pKe9oV+GgGfR4qNrP7BfpOBcN/Po/ctkFCbLOhHbu6M7HpBSiD57BUy5lfhQQtSjzCKEVTyrWEH0ApjjXKuJzLSyq7xsHKQSOPMgGQprGehyzdCETlZOdauGrC0t9vBCr7kXEhXtycqxBC03vknA2eNeV610VX+HgO9VpCVZWHtENiArhALCcpoEsJvT29xCBYpSii/wnTpYJFT9yW8tjQCxH0zrmEZJvO1/nMINEBQFScB/nzUELn9asnghNf6vMpSGy0fSM27j87VAXCzJ5lqa6WCL/RrKgvYflow/m5AzUfMQhpqpH1vmh4ba1zZ4123lgnW4pNZDV9kmwXrEagGbWe1rnmsMzHugsECiYQyIngjWzHfpHgyEr49Uc5bMM1MlTypeHYYL4kV1jJ8Ou0SC4aV+49p8Onmb2NlVY7JKV7hqDCuZPI164YXMxhPNst4XK0/ENhoOE+8iB6 |
@@ -145,3 +145,4 b' 26a5d605b8683a292bb89aea11f37a81b06ac016' | |||||
145 | 519bb4f9d3a47a6e83c2b414d58811ed38f503c2 3.9-rc |
|
145 | 519bb4f9d3a47a6e83c2b414d58811ed38f503c2 3.9-rc | |
146 | 299546f84e68dbb9bd026f0f3a974ce4bdb93686 3.9 |
|
146 | 299546f84e68dbb9bd026f0f3a974ce4bdb93686 3.9 | |
147 | ccd436f7db6d5d7b9af89715179b911d031d44f1 3.9.1 |
|
147 | ccd436f7db6d5d7b9af89715179b911d031d44f1 3.9.1 | |
|
148 | 149433e68974eb5c63ccb03f794d8b57339a80c4 3.9.2 |
@@ -4355,20 +4355,23 b' def _dograft(ui, repo, *revs, **opts):' | |||||
4355 | _('[OPTION]... PATTERN [FILE]...'), |
|
4355 | _('[OPTION]... PATTERN [FILE]...'), | |
4356 | inferrepo=True) |
|
4356 | inferrepo=True) | |
4357 | def grep(ui, repo, pattern, *pats, **opts): |
|
4357 | def grep(ui, repo, pattern, *pats, **opts): | |
4358 |
"""search for a pattern in specified files |
|
4358 | """search revision history for a pattern in specified files | |
4359 |
|
4359 | |||
4360 |
Search revision |
|
4360 | Search revision history for a regular expression in the specified | |
4361 |
|
4361 | files or the entire project. | ||
4362 | This command behaves differently than Unix grep. It only accepts |
|
4362 | ||
4363 | Python/Perl regexps. It searches repository history, not the |
|
4363 | By default, grep prints the most recent revision number for each | |
4364 | working directory. It always prints the revision number in which a |
|
|||
4365 | match appears. |
|
|||
4366 |
|
||||
4367 | By default, grep only prints output for the first revision of a |
|
|||
4368 | file in which it finds a match. To get it to print every revision |
|
4364 | file in which it finds a match. To get it to print every revision | |
4369 | that contains a change in match status ("-" for a match that |
|
4365 | that contains a change in match status ("-" for a match that becomes | |
4370 |
|
|
4366 | a non-match, or "+" for a non-match that becomes a match), use the | |
4371 |
|
|
4367 | --all flag. | |
|
4368 | ||||
|
4369 | PATTERN can be any Python (roughly Perl-compatible) regular | |||
|
4370 | expression. | |||
|
4371 | ||||
|
4372 | If no FILEs are specified (and -f/--follow isn't set), all files in | |||
|
4373 | the repository are searched, including those that don't exist in the | |||
|
4374 | current branch or have been deleted in a prior changeset. | |||
4372 |
|
4375 | |||
4373 | Returns 0 if a match is found, 1 otherwise. |
|
4376 | Returns 0 if a match is found, 1 otherwise. | |
4374 | """ |
|
4377 | """ |
@@ -307,7 +307,7 b' Testing -h/--help:' | |||||
307 | files list tracked files |
|
307 | files list tracked files | |
308 | forget forget the specified files on the next commit |
|
308 | forget forget the specified files on the next commit | |
309 | graft copy changes from other branches onto the current branch |
|
309 | graft copy changes from other branches onto the current branch | |
310 |
grep search for a pattern in specified files |
|
310 | grep search revision history for a pattern in specified files | |
311 | heads show branch heads |
|
311 | heads show branch heads | |
312 | help show help for a given topic or a help overview |
|
312 | help show help for a given topic or a help overview | |
313 | identify identify the working directory or specified revision |
|
313 | identify identify the working directory or specified revision | |
@@ -390,7 +390,7 b' Testing -h/--help:' | |||||
390 | files list tracked files |
|
390 | files list tracked files | |
391 | forget forget the specified files on the next commit |
|
391 | forget forget the specified files on the next commit | |
392 | graft copy changes from other branches onto the current branch |
|
392 | graft copy changes from other branches onto the current branch | |
393 |
grep search for a pattern in specified files |
|
393 | grep search revision history for a pattern in specified files | |
394 | heads show branch heads |
|
394 | heads show branch heads | |
395 | help show help for a given topic or a help overview |
|
395 | help show help for a given topic or a help overview | |
396 | identify identify the working directory or specified revision |
|
396 | identify identify the working directory or specified revision |
@@ -69,7 +69,7 b' Short help:' | |||||
69 | files list tracked files |
|
69 | files list tracked files | |
70 | forget forget the specified files on the next commit |
|
70 | forget forget the specified files on the next commit | |
71 | graft copy changes from other branches onto the current branch |
|
71 | graft copy changes from other branches onto the current branch | |
72 |
grep search for a pattern in specified files |
|
72 | grep search revision history for a pattern in specified files | |
73 | heads show branch heads |
|
73 | heads show branch heads | |
74 | help show help for a given topic or a help overview |
|
74 | help show help for a given topic or a help overview | |
75 | identify identify the working directory or specified revision |
|
75 | identify identify the working directory or specified revision | |
@@ -146,7 +146,7 b' Short help:' | |||||
146 | files list tracked files |
|
146 | files list tracked files | |
147 | forget forget the specified files on the next commit |
|
147 | forget forget the specified files on the next commit | |
148 | graft copy changes from other branches onto the current branch |
|
148 | graft copy changes from other branches onto the current branch | |
149 |
grep search for a pattern in specified files |
|
149 | grep search revision history for a pattern in specified files | |
150 | heads show branch heads |
|
150 | heads show branch heads | |
151 | help show help for a given topic or a help overview |
|
151 | help show help for a given topic or a help overview | |
152 | identify identify the working directory or specified revision |
|
152 | identify identify the working directory or specified revision | |
@@ -784,7 +784,7 b' Test that default list of commands omits' | |||||
784 | files list tracked files |
|
784 | files list tracked files | |
785 | forget forget the specified files on the next commit |
|
785 | forget forget the specified files on the next commit | |
786 | graft copy changes from other branches onto the current branch |
|
786 | graft copy changes from other branches onto the current branch | |
787 |
grep search for a pattern in specified files |
|
787 | grep search revision history for a pattern in specified files | |
788 | heads show branch heads |
|
788 | heads show branch heads | |
789 | help show help for a given topic or a help overview |
|
789 | help show help for a given topic or a help overview | |
790 | identify identify the working directory or specified revision |
|
790 | identify identify the working directory or specified revision | |
@@ -2201,7 +2201,7 b' Dish up an empty repo; serve it cold.' | |||||
2201 | grep |
|
2201 | grep | |
2202 | </a> |
|
2202 | </a> | |
2203 | </td><td> |
|
2203 | </td><td> | |
2204 |
search for a pattern in specified files |
|
2204 | search revision history for a pattern in specified files | |
2205 | </td></tr> |
|
2205 | </td></tr> | |
2206 | <tr><td> |
|
2206 | <tr><td> | |
2207 | <a href="/help/heads"> |
|
2207 | <a href="/help/heads"> |
@@ -1467,7 +1467,7 b' help/ shows help topics' | |||||
1467 | "topic": "graft" |
|
1467 | "topic": "graft" | |
1468 | }, |
|
1468 | }, | |
1469 | { |
|
1469 | { | |
1470 |
"summary": "search for a pattern in specified files |
|
1470 | "summary": "search revision history for a pattern in specified files", | |
1471 | "topic": "grep" |
|
1471 | "topic": "grep" | |
1472 | }, |
|
1472 | }, | |
1473 | { |
|
1473 | { |
General Comments 0
You need to be logged in to leave comments.
Login now