This is an archive of the discontinued Mercurial Phabricator instance.

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

Authored by quark on Oct 9 2017, 3:44 PM.

Details

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

quark created this revision.Oct 9 2017, 3:44 PM
lothiraldan added inline comments.
mercurial/dispatch.py
876

Why not using the uis set to iterate like for other options above? repo.repo.ui is already added to the set at line 771

quark updated this revision to Diff 2572.Oct 10 2017, 3:05 PM
lothiraldan accepted this revision.Oct 11 2017, 4:23 AM

LGTM, I was wondering if lui was special and if we should disable its pager or not.

This revision was automatically updated to reflect the committed changes.