Show More
@@ -28,6 +28,7 b' from mercurial import (' | |||
|
28 | 28 | commands, |
|
29 | 29 | dispatch, |
|
30 | 30 | extensions, |
|
31 | registrar, | |
|
31 | 32 | ) |
|
32 | 33 | |
|
33 | 34 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
@@ -36,13 +37,20 b' from mercurial import (' | |||
|
36 | 37 | # leave the attribute unspecified. |
|
37 | 38 | testedwith = 'ships-with-hg-core' |
|
38 | 39 | |
|
40 | configtable = {} | |
|
41 | configitem = registrar.configitem(configtable) | |
|
42 | ||
|
43 | configitem('pager', 'attend', | |
|
44 | default=lambda: attended, | |
|
45 | ) | |
|
46 | ||
|
39 | 47 | def uisetup(ui): |
|
40 | 48 | |
|
41 | 49 | def pagecmd(orig, ui, options, cmd, cmdfunc): |
|
42 | 50 | auto = options['pager'] == 'auto' |
|
43 | 51 | if auto and not ui.pageractive: |
|
44 | 52 | usepager = False |
|
45 |
attend = ui.configlist('pager', 'attend' |
|
|
53 | attend = ui.configlist('pager', 'attend') | |
|
46 | 54 | ignore = ui.configlist('pager', 'ignore') |
|
47 | 55 | cmds, _ = cmdutil.findcmd(cmd, commands.table) |
|
48 | 56 |
General Comments 0
You need to be logged in to leave comments.
Login now