Show More
@@ -64,10 +64,10 b' def uisetup(ui):' | |||||
64 | # behavior is preserved. |
|
64 | # behavior is preserved. | |
65 | ui.setconfig('pager', 'ignore', '', 'pager') |
|
65 | ui.setconfig('pager', 'ignore', '', 'pager') | |
66 | ui.pager('extension-via-attend-' + cmd) |
|
66 | ui.pager('extension-via-attend-' + cmd) | |
|
67 | else: | |||
|
68 | ui.disablepager() | |||
67 | return orig(ui, options, cmd, cmdfunc) |
|
69 | return orig(ui, options, cmd, cmdfunc) | |
68 |
|
70 | |||
69 | extensions.wrapfunction(dispatch, '_runcommand', pagecmd) |
|
71 | extensions.wrapfunction(dispatch, '_runcommand', pagecmd) | |
70 |
|
72 | |||
71 | attended = [ |
|
73 | attended = ['annotate', 'cat', 'diff', 'export', 'glog', 'log', 'qdiff'] | |
72 | 'the-default-attend-list-is-now-empty-but-that-breaks-the-extension', |
|
|||
73 | ] |
|
@@ -50,14 +50,13 b' By default diff and log are paged, but s' | |||||
50 | paged! 'summary: modify a 9\n' |
|
50 | paged! 'summary: modify a 9\n' | |
51 | paged! '\n' |
|
51 | paged! '\n' | |
52 |
|
52 | |||
53 | BROKEN: should not be paged by default |
|
|||
54 | $ hg summary |
|
53 | $ hg summary | |
55 |
pa |
|
54 | parent: 10:46106edeeb38 tip | |
56 |
|
|
55 | modify a 10 | |
57 |
|
|
56 | branch: default | |
58 |
|
|
57 | commit: (clean) | |
59 |
|
|
58 | update: (current) | |
60 |
p |
|
59 | phases: 11 draft | |
61 |
|
60 | |||
62 | We can enable the pager on summary: |
|
61 | We can enable the pager on summary: | |
63 |
|
62 | |||
@@ -79,15 +78,14 b' We can enable the pager on summary:' | |||||
79 | +a 2 |
|
78 | +a 2 | |
80 |
|
79 | |||
81 | If we completely change the attend list that's respected: |
|
80 | If we completely change the attend list that's respected: | |
82 | BROKEN: diff should not be paged |
|
|||
83 | $ hg --config pager.attend=summary diff -c 2 |
|
81 | $ hg --config pager.attend=summary diff -c 2 | |
84 |
|
|
82 | diff -r f4be7687d414 -r bce265549556 a | |
85 |
|
|
83 | --- a/a Thu Jan 01 00:00:00 1970 +0000 | |
86 |
|
|
84 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |
87 |
|
|
85 | @@ -1,2 +1,3 @@ | |
88 | paged! ' a\n' |
|
86 | a | |
89 | paged! ' a 1\n' |
|
87 | a 1 | |
90 | paged! '+a 2\n' |
|
88 | +a 2 | |
91 |
|
89 | |||
92 | If 'log' is in attend, then 'history' should also be paged: |
|
90 | If 'log' is in attend, then 'history' should also be paged: | |
93 | $ hg history --limit 2 --config pager.attend=log |
|
91 | $ hg history --limit 2 --config pager.attend=log |
General Comments 0
You need to be logged in to leave comments.
Login now