Show More
@@ -2590,8 +2590,11 b' def grep(ui, repo, pattern, *pats, **opt' | |||||
2590 | skip[fn] = True |
|
2590 | skip[fn] = True | |
2591 | if copy: |
|
2591 | if copy: | |
2592 | skip[copy] = True |
|
2592 | skip[copy] = True | |
2593 | del matches[rev] |
|
|||
2594 | del revfiles[rev] |
|
2593 | del revfiles[rev] | |
|
2594 | # We will keep the matches dict for the duration of the window | |||
|
2595 | # clear the matches dict once the window is over | |||
|
2596 | if not revfiles: | |||
|
2597 | matches.clear() | |||
2595 | fm.end() |
|
2598 | fm.end() | |
2596 |
|
2599 | |||
2597 | return not found |
|
2600 | return not found |
@@ -330,6 +330,17 b' of just using revision numbers.' | |||||
330 | color:3:-:red |
|
330 | color:3:-:red | |
331 | color:1:+:red |
|
331 | color:1:+:red | |
332 |
|
332 | |||
|
333 | Issue3885: test that changing revision order does not alter the | |||
|
334 | revisions printed, just their order. | |||
|
335 | ||||
|
336 | $ hg grep --all red -r "all()" | |||
|
337 | color:1:+:red | |||
|
338 | color:3:-:red | |||
|
339 | ||||
|
340 | $ hg grep --all red -r "reverse(all())" | |||
|
341 | color:3:-:red | |||
|
342 | color:1:+:red | |||
|
343 | ||||
333 | $ cd .. |
|
344 | $ cd .. | |
334 |
|
345 | |||
335 | $ hg init a |
|
346 | $ hg init a |
General Comments 0
You need to be logged in to leave comments.
Login now