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

login
register
mail settings
Submitter phabricator
Date Oct. 13, 2017, 2:05 p.m.
Message ID <71cce724f2d38a824f5d93081a6cce55@localhost.localdomain>
Download mbox | patch
Permalink /patch/24825/
State Not Applicable
Headers show

Comments

phabricator - Oct. 13, 2017, 2:05 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG021607b4ef49: dispatch: when --pager=no is passed, also disable pager on req.repo.ui (authored by quark, committed by ).

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  mercurial/dispatch.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -871,7 +871,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)