From patchwork Tue Oct 10 19:05:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D990: dispatch: when --pager=no is passed, also disable pager on req.repo.ui From: phabricator X-Patchwork-Id: 24715 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Tue, 10 Oct 2017 19:05:37 +0000 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 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)