##// END OF EJS Templates
pager: add attend-<command> option...
Matt Mackall -
r21281:bcddddcf default
parent child Browse files
Show More
@@ -39,12 +39,20 b' paged.'
39 39
40 40 If pager.attend is present, pager.ignore will be ignored.
41 41
42 Lastly, you can enable and disable paging for individual commands with
43 the attend-<command> option. This setting takes precedence over
44 existing attend and ignore options and defaults::
45
46 [pager]
47 attend-cat = false
48
42 49 To ignore global commands like :hg:`version` or :hg:`help`, you have
43 50 to specify them in your user configuration file.
44 51
45 52 The --pager=... option can also be used to control when the pager is
46 53 used. Use a boolean value like yes, no, on, off, or use auto for
47 54 normal behavior.
55
48 56 '''
49 57
50 58 import atexit, sys, os, signal, subprocess, errno, shlex
@@ -132,6 +140,10 b' def uisetup(ui):'
132 140 cmds, _ = cmdutil.findcmd(cmd, commands.table)
133 141
134 142 for cmd in cmds:
143 var = 'attend-%s' % cmd
144 if ui.config('pager', var):
145 usepager = ui.configbool('pager', var)
146 break
135 147 if (cmd in attend or
136 148 (cmd not in ignore and not attend)):
137 149 usepager = True
General Comments 0
You need to be logged in to leave comments. Login now