comparison tests/test-pager.t @ 32098:149440d7e1a7 stable

pager: test the 'enable' config option While poking at this option I realised it was not tested.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 01 May 2017 16:36:30 +0200
parents 769c831708c7
children 9a85ea1daf49
comparison
equal deleted inserted replaced
32097:601bfcddccdc 32098:149440d7e1a7
49 paged! 'summary: modify a 9\n' 49 paged! 'summary: modify a 9\n'
50 paged! '\n' 50 paged! '\n'
51 51
52 $ hg id 52 $ hg id
53 46106edeeb38 tip 53 46106edeeb38 tip
54
55 We can control the pager from the config
56
57 $ hg log --limit 1 --config 'pager.enable=False'
58 changeset: 10:46106edeeb38
59 tag: tip
60 user: test
61 date: Thu Jan 01 00:00:00 1970 +0000
62 summary: modify a 10
63
64 $ hg log --limit 1 --config 'pager.enable=0'
65 changeset: 10:46106edeeb38
66 tag: tip
67 user: test
68 date: Thu Jan 01 00:00:00 1970 +0000
69 summary: modify a 10
70
71 $ hg log --limit 1 --config 'pager.enable=1'
72 paged! 'changeset: 10:46106edeeb38\n'
73 paged! 'tag: tip\n'
74 paged! 'user: test\n'
75 paged! 'date: Thu Jan 01 00:00:00 1970 +0000\n'
76 paged! 'summary: modify a 10\n'
77 paged! '\n'
54 78
55 We can enable the pager on id: 79 We can enable the pager on id:
56 80
57 BROKEN: should be paged 81 BROKEN: should be paged
58 $ hg --config pager.attend-id=yes id 82 $ hg --config pager.attend-id=yes id