Show More
@@ -962,6 +962,7 b' class ui(object):' | |||||
962 | # formatted() will need some adjustment. |
|
962 | # formatted() will need some adjustment. | |
963 | or not self.formatted() |
|
963 | or not self.formatted() | |
964 | or self.plain() |
|
964 | or self.plain() | |
|
965 | or self._buffers | |||
965 | # TODO: expose debugger-enabled on the UI object |
|
966 | # TODO: expose debugger-enabled on the UI object | |
966 | or '--debugger' in pycompat.sysargv): |
|
967 | or '--debugger' in pycompat.sysargv): | |
967 | # We only want to paginate if the ui appears to be |
|
968 | # We only want to paginate if the ui appears to be |
@@ -340,6 +340,20 b' Put annotate in the ignore list for page' | |||||
340 | 9: a 9 |
|
340 | 9: a 9 | |
341 | 10: a 10 |
|
341 | 10: a 10 | |
342 |
|
342 | |||
|
343 | During pushbuffer, pager should not start: | |||
|
344 | $ cat > $TESTTMP/pushbufferpager.py <<EOF | |||
|
345 | > def uisetup(ui): | |||
|
346 | > ui.pushbuffer() | |||
|
347 | > ui.pager('mycmd') | |||
|
348 | > ui.write('content\n') | |||
|
349 | > ui.write(ui.popbuffer()) | |||
|
350 | > EOF | |||
|
351 | ||||
|
352 | $ echo append >> a | |||
|
353 | $ hg --config extensions.pushbuffer=$TESTTMP/pushbufferpager.py status --color=off | |||
|
354 | content | |||
|
355 | paged! 'M a\n' | |||
|
356 | ||||
343 | Environment variables like LESS and LV are set automatically: |
|
357 | Environment variables like LESS and LV are set automatically: | |
344 | $ cat > $TESTTMP/printlesslv.py <<EOF |
|
358 | $ cat > $TESTTMP/printlesslv.py <<EOF | |
345 | > from __future__ import absolute_import |
|
359 | > from __future__ import absolute_import |
General Comments 0
You need to be logged in to leave comments.
Login now