Mercurial > hg-stable
comparison tests/test-grep.t @ 17806:dc7010ed0101
grep: colorize all fields
Colors were picked in accordance to GNU grep.
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Sun, 14 Oct 2012 20:27:55 +0200 |
parents | 21c93988ca70 |
children | 1e6b5faf9d4e |
comparison
equal
deleted
inserted
replaced
17805:21c93988ca70 | 17806:dc7010ed0101 |
---|---|
30 | 30 |
31 simple with color | 31 simple with color |
32 | 32 |
33 $ hg --config extensions.color= grep --config color.mode=ansi \ | 33 $ hg --config extensions.color= grep --config color.mode=ansi \ |
34 > --color=always port port | 34 > --color=always port port |
35 port:4:ex\x1b[0;31;1mport\x1b[0m (esc) | 35 \x1b[0;35mport\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;32m4\x1b[0m\x1b[0;36m:\x1b[0mex\x1b[0;31;1mport\x1b[0m (esc) |
36 port:4:va\x1b[0;31;1mport\x1b[0might (esc) | 36 \x1b[0;35mport\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;32m4\x1b[0m\x1b[0;36m:\x1b[0mva\x1b[0;31;1mport\x1b[0might (esc) |
37 port:4:im\x1b[0;31;1mport\x1b[0m/export (esc) | 37 \x1b[0;35mport\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;32m4\x1b[0m\x1b[0;36m:\x1b[0mim\x1b[0;31;1mport\x1b[0m/export (esc) |
38 | 38 |
39 all | 39 all |
40 | 40 |
41 $ hg grep --traceback --all -nu port port | 41 $ hg grep --traceback --all -nu port port |
42 port:4:4:-:spam:import/export | 42 port:4:4:-:spam:import/export |