equal
deleted
inserted
replaced
279 $ hg grep --all orange |
279 $ hg grep --all orange |
280 color:3:+:orange |
280 color:3:+:orange |
281 color:2:-:orange |
281 color:2:-:orange |
282 color:1:+:orange |
282 color:1:+:orange |
283 |
283 |
|
284 $ hg grep --diff orange |
|
285 color:3:+:orange |
|
286 color:2:-:orange |
|
287 color:1:+:orange |
|
288 |
284 test substring match: '^' should only match at the beginning |
289 test substring match: '^' should only match at the beginning |
285 |
290 |
286 $ hg grep '^.' --config extensions.color= --color debug |
291 $ hg grep '^.' --config extensions.color= --color debug |
287 [grep.filename|color][grep.sep|:][grep.rev|3][grep.sep|:][grep.match|b]lack |
292 [grep.filename|color][grep.sep|:][grep.rev|3][grep.sep|:][grep.match|b]lack |
288 [grep.filename|color][grep.sep|:][grep.rev|3][grep.sep|:][grep.match|o]range |
293 [grep.filename|color][grep.sep|:][grep.rev|3][grep.sep|:][grep.match|o]range |
347 |
352 |
348 $ hg grep --all red |
353 $ hg grep --all red |
349 color:3:-:red |
354 color:3:-:red |
350 color:1:+:red |
355 color:1:+:red |
351 |
356 |
|
357 $ hg grep --diff red |
|
358 color:3:-:red |
|
359 color:1:+:red |
|
360 |
352 Issue3885: test that changing revision order does not alter the |
361 Issue3885: test that changing revision order does not alter the |
353 revisions printed, just their order. |
362 revisions printed, just their order. |
354 |
363 |
355 $ hg grep --all red -r "all()" |
364 $ hg grep --all red -r "all()" |
356 color:1:+:red |
365 color:1:+:red |
357 color:3:-:red |
366 color:3:-:red |
358 |
367 |
359 $ hg grep --all red -r "reverse(all())" |
368 $ hg grep --all red -r "reverse(all())" |
|
369 color:3:-:red |
|
370 color:1:+:red |
|
371 |
|
372 $ hg grep --diff red -r "all()" |
|
373 color:1:+:red |
|
374 color:3:-:red |
|
375 |
|
376 $ hg grep --diff red -r "reverse(all())" |
360 color:3:-:red |
377 color:3:-:red |
361 color:1:+:red |
378 color:1:+:red |
362 |
379 |
363 $ cd .. |
380 $ cd .. |
364 |
381 |
366 $ cd a |
383 $ cd a |
367 $ cp "$TESTDIR/binfile.bin" . |
384 $ cp "$TESTDIR/binfile.bin" . |
368 $ hg add binfile.bin |
385 $ hg add binfile.bin |
369 $ hg ci -m 'add binfile.bin' |
386 $ hg ci -m 'add binfile.bin' |
370 $ hg grep "MaCam" --all |
387 $ hg grep "MaCam" --all |
|
388 binfile.bin:0:+: Binary file matches |
|
389 |
|
390 $ hg grep "MaCam" --diff |
371 binfile.bin:0:+: Binary file matches |
391 binfile.bin:0:+: Binary file matches |
372 |
392 |
373 $ cd .. |
393 $ cd .. |
374 |
394 |
375 Test for showing working of allfiles flag |
395 Test for showing working of allfiles flag |