Mercurial > hg
comparison tests/test-pager.t @ 30999:334cf948c758
annotate: migrate to modern pager API
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 06 Feb 2017 22:52:47 -0500 |
parents | cc3c9b6f1e09 |
children | 84ec2d6a2831 |
comparison
equal
deleted
inserted
replaced
30998:75e325ce538e | 30999:334cf948c758 |
---|---|
162 > EOF | 162 > EOF |
163 | 163 |
164 $ hg fortytwo --pager=on | 164 $ hg fortytwo --pager=on |
165 paged! '42\n' | 165 paged! '42\n' |
166 [42] | 166 [42] |
167 | |
168 A command that asks for paging using ui.pager() directly works: | |
169 $ hg blame a | |
170 paged! ' 0: a\n' | |
171 paged! ' 1: a 1\n' | |
172 paged! ' 2: a 2\n' | |
173 paged! ' 3: a 3\n' | |
174 paged! ' 4: a 4\n' | |
175 paged! ' 5: a 5\n' | |
176 paged! ' 6: a 6\n' | |
177 paged! ' 7: a 7\n' | |
178 paged! ' 8: a 8\n' | |
179 paged! ' 9: a 9\n' | |
180 paged! '10: a 10\n' | |
181 but not with HGPLAIN | |
182 $ HGPLAIN=1 hg blame a | |
183 0: a | |
184 1: a 1 | |
185 2: a 2 | |
186 3: a 3 | |
187 4: a 4 | |
188 5: a 5 | |
189 6: a 6 | |
190 7: a 7 | |
191 8: a 8 | |
192 9: a 9 | |
193 10: a 10 | |
194 explicit flags work too: | |
195 $ hg blame --pager=no a | |
196 0: a | |
197 1: a 1 | |
198 2: a 2 | |
199 3: a 3 | |
200 4: a 4 | |
201 5: a 5 | |
202 6: a 6 | |
203 7: a 7 | |
204 8: a 8 | |
205 9: a 9 | |
206 10: a 10 |