--- a/hgext/pager.py Sat Oct 05 10:29:34 2019 -0400
+++ b/hgext/pager.py Sun Oct 06 09:45:02 2019 -0400
@@ -29,7 +29,7 @@
dispatch,
extensions,
registrar,
- )
+)
# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
@@ -40,12 +40,12 @@
configtable = {}
configitem = registrar.configitem(configtable)
-configitem('pager', 'attend',
- default=lambda: attended,
+configitem(
+ 'pager', 'attend', default=lambda: attended,
)
+
def uisetup(ui):
-
def pagecmd(orig, ui, options, cmd, cmdfunc):
auto = options['pager'] == 'auto'
if auto and not ui.pageractive:
@@ -59,8 +59,7 @@
if ui.config('pager', var, None):
usepager = ui.configbool('pager', var, True)
break
- if (cmd in attend or
- (cmd not in ignore and not attend)):
+ if cmd in attend or (cmd not in ignore and not attend):
usepager = True
break
@@ -78,4 +77,5 @@
extensions.wrapfunction(dispatch, '_runcommand', pagecmd)
+
attended = ['annotate', 'cat', 'diff', 'export', 'glog', 'log', 'qdiff']