##// END OF EJS Templates
tests: clean up a bunch of pager testing that is about to be invalidated...
Augie Fackler -
r30996:cc3c9b6f default
parent child Browse files
Show More
@@ -58,7 +58,8 b' We can enable the pager on id:'
58 $ hg --config pager.attend-id=yes id
58 $ hg --config pager.attend-id=yes id
59 paged! '46106edeeb38 tip\n'
59 paged! '46106edeeb38 tip\n'
60
60
61 If we completely change the attend list that's respected:
61 Setting attend-$COMMAND to a false value works, even with pager in
62 core:
62
63
63 $ hg --config pager.attend-diff=no diff -c 2
64 $ hg --config pager.attend-diff=no diff -c 2
64 diff -r f4be7687d414 -r bce265549556 a
65 diff -r f4be7687d414 -r bce265549556 a
@@ -69,15 +70,6 b' If we completely change the attend list '
69 a 1
70 a 1
70 +a 2
71 +a 2
71
72
72 $ hg --config pager.attend=summary diff -c 2
73 diff -r f4be7687d414 -r bce265549556 a
74 --- a/a Thu Jan 01 00:00:00 1970 +0000
75 +++ b/a Thu Jan 01 00:00:00 1970 +0000
76 @@ -1,2 +1,3 @@
77 a
78 a 1
79 +a 2
80
81 If 'log' is in attend, then 'history' should also be paged:
73 If 'log' is in attend, then 'history' should also be paged:
82 $ hg history --limit 2 --config pager.attend=log
74 $ hg history --limit 2 --config pager.attend=log
83 paged! 'changeset: 10:46106edeeb38\n'
75 paged! 'changeset: 10:46106edeeb38\n'
@@ -92,56 +84,6 b" If 'log' is in attend, then 'history' sh"
92 paged! 'summary: modify a 9\n'
84 paged! 'summary: modify a 9\n'
93 paged! '\n'
85 paged! '\n'
94
86
95 Possible bug: history is explicitly ignored in pager config, but
96 because log is in the attend list it still gets pager treatment.
97
98 $ hg history --limit 2 --config pager.attend=log \
99 > --config pager.ignore=history
100 paged! 'changeset: 10:46106edeeb38\n'
101 paged! 'tag: tip\n'
102 paged! 'user: test\n'
103 paged! 'date: Thu Jan 01 00:00:00 1970 +0000\n'
104 paged! 'summary: modify a 10\n'
105 paged! '\n'
106 paged! 'changeset: 9:6dd8ea7dd621\n'
107 paged! 'user: test\n'
108 paged! 'date: Thu Jan 01 00:00:00 1970 +0000\n'
109 paged! 'summary: modify a 9\n'
110 paged! '\n'
111
112 Possible bug: history is explicitly marked as attend-history=no, but
113 it doesn't fail to get paged because log is still in the attend list.
114
115 $ hg history --limit 2 --config pager.attend-history=no
116 paged! 'changeset: 10:46106edeeb38\n'
117 paged! 'tag: tip\n'
118 paged! 'user: test\n'
119 paged! 'date: Thu Jan 01 00:00:00 1970 +0000\n'
120 paged! 'summary: modify a 10\n'
121 paged! '\n'
122 paged! 'changeset: 9:6dd8ea7dd621\n'
123 paged! 'user: test\n'
124 paged! 'date: Thu Jan 01 00:00:00 1970 +0000\n'
125 paged! 'summary: modify a 9\n'
126 paged! '\n'
127
128 Possible bug: disabling pager for log but enabling it for history
129 doesn't result in history being paged.
130
131 $ hg history --limit 2 --config pager.attend-log=no \
132 > --config pager.attend-history=yes
133 changeset: 10:46106edeeb38
134 tag: tip
135 user: test
136 date: Thu Jan 01 00:00:00 1970 +0000
137 summary: modify a 10
138
139 changeset: 9:6dd8ea7dd621
140 user: test
141 date: Thu Jan 01 00:00:00 1970 +0000
142 summary: modify a 9
143
144
145 Pager should not start if stdout is not a tty.
87 Pager should not start if stdout is not a tty.
146
88
147 $ hg log -l1 -q --config ui.formatted=False
89 $ hg log -l1 -q --config ui.formatted=False
General Comments 0
You need to be logged in to leave comments. Login now