comparison tests/test-pager.t @ 33620:cc047a733f69 stable

ui: enable pager always for explicit --pager=on (issue5580) Before this patch, explicit --pager=on is unintentionally ignored by any disabling factor, even if priority of it is less than --pager=on (e.g. "[ui] paginate = off").
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Tue, 01 Aug 2017 18:52:52 +0900
parents fce4ed2912bb
children dcfa83652744
comparison
equal deleted inserted replaced
33618:76b171209151 33620:cc047a733f69
77 paged! 'tag: tip\n' 77 paged! 'tag: tip\n'
78 paged! 'user: test\n' 78 paged! 'user: test\n'
79 paged! 'date: Thu Jan 01 00:00:00 1970 +0000\n' 79 paged! 'date: Thu Jan 01 00:00:00 1970 +0000\n'
80 paged! 'summary: modify a 10\n' 80 paged! 'summary: modify a 10\n'
81 paged! '\n' 81 paged! '\n'
82
83 explicit --pager=on should take precedence over other configurations
84 (issue5580)
85
86 $ cat >> $HGRCPATH <<EOF
87 > [ui]
88 > paginate = false
89 > EOF
90 $ hg log --limit 1 --pager=on
91 paged! 'changeset: 10:46106edeeb38\n'
92 paged! 'tag: tip\n'
93 paged! 'user: test\n'
94 paged! 'date: Thu Jan 01 00:00:00 1970 +0000\n'
95 paged! 'summary: modify a 10\n'
96 paged! '\n'
97
98 $ cat >> $HGRCPATH <<EOF
99 > [ui]
100 > # true is default value of ui.paginate
101 > paginate = true
102 > EOF
103 $ hg log --limit 1 --pager=off
104 changeset: 10:46106edeeb38
105 tag: tip
106 user: test
107 date: Thu Jan 01 00:00:00 1970 +0000
108 summary: modify a 10
109
82 110
83 We can enable the pager on id: 111 We can enable the pager on id:
84 112
85 BROKEN: should be paged 113 BROKEN: should be paged
86 $ hg --config pager.attend-id=yes id 114 $ hg --config pager.attend-id=yes id