Mercurial > hg
comparison hgext/pager.py @ 34669:03f7db5f8e71
configitems: register the 'pager.attend-.*' options
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 11 Oct 2017 02:26:09 +0200 |
parents | 6d1b0970f80c |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
34668:31723cff35fa | 34669:03f7db5f8e71 |
---|---|
54 ignore = ui.configlist('pager', 'ignore') | 54 ignore = ui.configlist('pager', 'ignore') |
55 cmds, _ = cmdutil.findcmd(cmd, commands.table) | 55 cmds, _ = cmdutil.findcmd(cmd, commands.table) |
56 | 56 |
57 for cmd in cmds: | 57 for cmd in cmds: |
58 var = 'attend-%s' % cmd | 58 var = 'attend-%s' % cmd |
59 if ui.config('pager', var): | 59 if ui.config('pager', var, None): |
60 usepager = ui.configbool('pager', var) | 60 usepager = ui.configbool('pager', var, True) |
61 break | 61 break |
62 if (cmd in attend or | 62 if (cmd in attend or |
63 (cmd not in ignore and not attend)): | 63 (cmd not in ignore and not attend)): |
64 usepager = True | 64 usepager = True |
65 break | 65 break |