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