Show More
@@ -110,4 +110,4 b' def uisetup(ui):' | |||||
110 | extensions.wrapfunction(dispatch, '_runcommand', pagecmd) |
|
110 | extensions.wrapfunction(dispatch, '_runcommand', pagecmd) | |
111 | extensions.afterloaded('color', afterloaded) |
|
111 | extensions.afterloaded('color', afterloaded) | |
112 |
|
112 | |||
113 |
attended = [ |
|
113 | attended = ['cat', 'diff', 'export', 'glog', 'log', 'qdiff'] |
@@ -361,6 +361,7 b' def annotate(ui, repo, *pats, **opts):' | |||||
361 |
|
361 | |||
362 | Returns 0 on success. |
|
362 | Returns 0 on success. | |
363 | """ |
|
363 | """ | |
|
364 | ui.pager('annotate') | |||
364 | if not pats: |
|
365 | if not pats: | |
365 | raise error.Abort(_('at least one filename or pattern is required')) |
|
366 | raise error.Abort(_('at least one filename or pattern is required')) | |
366 |
|
367 |
@@ -164,3 +164,43 b' Pager should not override the exit code ' | |||||
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 |
General Comments 0
You need to be logged in to leave comments.
Login now