D990: dispatch: when --pager=no is passed, also disable pager on req.repo.ui
quark (Jun Wu)
phabricator at mercurial-scm.org
Mon Oct 9 19:44:49 UTC 2017
quark created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
With a future chg change, `req.repo` could be set and currently it is
unaffected by `--pager=on`. This patch makes it so.
This could make one of the test cases in `test-pager.t` pass with future chg
changes.
REPOSITORY
rHG Mercurial
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
@@ -865,6 +865,8 @@
ui.pager('internal-always-' + cmd)
elif options['pager'] != 'auto':
ui.disablepager()
+ if req.repo is not None:
+ req.repo.ui.disablepager()
if options['version']:
return commands.version_(ui)
To: quark, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list