Show More
@@ -77,7 +77,7 b' except ImportError:' | |||||
77 | _defaultstyles = { |
|
77 | _defaultstyles = { | |
78 | 'grep.match': 'red bold', |
|
78 | 'grep.match': 'red bold', | |
79 | 'grep.linenumber': 'green', |
|
79 | 'grep.linenumber': 'green', | |
80 |
'grep.rev': ' |
|
80 | 'grep.rev': 'blue', | |
81 | 'grep.sep': 'cyan', |
|
81 | 'grep.sep': 'cyan', | |
82 | 'grep.filename': 'magenta', |
|
82 | 'grep.filename': 'magenta', | |
83 | 'grep.user': 'magenta', |
|
83 | 'grep.user': 'magenta', |
@@ -50,9 +50,9 b' simple with color' | |||||
50 |
|
50 | |||
51 | $ hg --config extensions.color= grep --config color.mode=ansi \ |
|
51 | $ hg --config extensions.color= grep --config color.mode=ansi \ | |
52 | > --color=always port port -r tip:0 |
|
52 | > --color=always port port -r tip:0 | |
53 |
\x1b[0;35mport\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;3 |
|
53 | \x1b[0;35mport\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;34m4\x1b[0m\x1b[0;36m:\x1b[0mex\x1b[0;31;1mport\x1b[0m (esc) | |
54 |
\x1b[0;35mport\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;3 |
|
54 | \x1b[0;35mport\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;34m4\x1b[0m\x1b[0;36m:\x1b[0mva\x1b[0;31;1mport\x1b[0might (esc) | |
55 |
\x1b[0;35mport\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;3 |
|
55 | \x1b[0;35mport\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;34m4\x1b[0m\x1b[0;36m:\x1b[0mim\x1b[0;31;1mport\x1b[0m/ex\x1b[0;31;1mport\x1b[0m (esc) | |
56 |
|
56 | |||
57 | simple templated |
|
57 | simple templated | |
58 |
|
58 | |||
@@ -305,9 +305,9 b' Test wdir' | |||||
305 | [grep.filename|color][grep.sep|:][grep.rev|1][grep.sep|:][grep.inserted grep.change|+][grep.sep|:][grep.match|orange] |
|
305 | [grep.filename|color][grep.sep|:][grep.rev|1][grep.sep|:][grep.inserted grep.change|+][grep.sep|:][grep.match|orange] | |
306 |
|
306 | |||
307 | $ hg grep --diff orange --color=yes |
|
307 | $ hg grep --diff orange --color=yes | |
308 |
\x1b[0;35mcolor\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;3 |
|
308 | \x1b[0;35mcolor\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;34m3\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;32;1m+\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;31;1morange\x1b[0m (esc) | |
309 |
\x1b[0;35mcolor\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;3 |
|
309 | \x1b[0;35mcolor\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;34m2\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;31;1m-\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;31;1morange\x1b[0m (esc) | |
310 |
\x1b[0;35mcolor\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;3 |
|
310 | \x1b[0;35mcolor\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;34m1\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;32;1m+\x1b[0m\x1b[0;36m:\x1b[0m\x1b[0;31;1morange\x1b[0m (esc) | |
311 |
|
311 | |||
312 | $ hg grep --diff orange |
|
312 | $ hg grep --diff orange | |
313 | color:3:+:orange |
|
313 | color:3:+:orange |
General Comments 0
You need to be logged in to leave comments.
Login now