Show More
@@ -151,3 +151,29 b" doesn't result in history being paged." | |||||
151 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
151 | date: Thu Jan 01 00:00:00 1970 +0000 | |
152 | summary: modify a 9 |
|
152 | summary: modify a 9 | |
153 |
|
153 | |||
|
154 | ||||
|
155 | Pager with color enabled allows colors to come through by default, | |||
|
156 | even though stdout is no longer a tty. | |||
|
157 | $ cat >> $HGRCPATH <<EOF | |||
|
158 | > [extensions] | |||
|
159 | > color= | |||
|
160 | > [color] | |||
|
161 | > mode = ansi | |||
|
162 | > EOF | |||
|
163 | $ hg log --limit 3 | |||
|
164 | paged! '\x1b[0;33mchangeset: 10:46106edeeb38\x1b[0m\n' | |||
|
165 | paged! 'tag: tip\n' | |||
|
166 | paged! 'user: test\n' | |||
|
167 | paged! 'date: Thu Jan 01 00:00:00 1970 +0000\n' | |||
|
168 | paged! 'summary: modify a 10\n' | |||
|
169 | paged! '\n' | |||
|
170 | paged! '\x1b[0;33mchangeset: 9:6dd8ea7dd621\x1b[0m\n' | |||
|
171 | paged! 'user: test\n' | |||
|
172 | paged! 'date: Thu Jan 01 00:00:00 1970 +0000\n' | |||
|
173 | paged! 'summary: modify a 9\n' | |||
|
174 | paged! '\n' | |||
|
175 | paged! '\x1b[0;33mchangeset: 8:cff05a6312fe\x1b[0m\n' | |||
|
176 | paged! 'user: test\n' | |||
|
177 | paged! 'date: Thu Jan 01 00:00:00 1970 +0000\n' | |||
|
178 | paged! 'summary: modify a 8\n' | |||
|
179 | paged! '\n' |
General Comments 0
You need to be logged in to leave comments.
Login now