Patchwork D990: dispatch: when --pager=no is passed, also disable pager on req.repo.ui

login
register
mail settings
Submitter phabricator
Date Oct. 10, 2017, 7:05 p.m.
Message ID <d9724cd3e55b6a16eebb49b24e525e1d@localhost.localdomain>
Download mbox | patch
Permalink /patch/24715/
State Not Applicable
Headers show

Comments

phabricator - Oct. 10, 2017, 7:05 p.m.
quark updated this revision to Diff 2572.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D990?vs=2535&id=2572

REVISION DETAIL
  https://phab.mercurial-scm.org/D990

AFFECTED FILES
  mercurial/dispatch.py

CHANGE DETAILS




To: quark, #hg-reviewers
Cc: lothiraldan, mercurial-devel

Patch

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -864,7 +864,8 @@ 
             # ui.pager() expects 'internal-always-' prefix in this case
             ui.pager('internal-always-' + cmd)
         elif options['pager'] != 'auto':
-            ui.disablepager()
+            for ui_ in uis:
+                ui_.disablepager()
 
         if options['version']:
             return commands.version_(ui)