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

quark (Jun Wu) phabricator at mercurial-scm.org
Tue Oct 10 15:05:37 EDT 2017


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

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)



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


More information about the Mercurial-devel mailing list