comparison mercurial/dispatch.py @ 34638:021607b4ef49

dispatch: when --pager=no is passed, also disable pager on req.repo.ui 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. Differential Revision: https://phab.mercurial-scm.org/D990
author Jun Wu <quark@fb.com>
date Mon, 09 Oct 2017 12:42:28 -0700
parents 163fa0aea71e
children fe987d0b9e1e
comparison
equal deleted inserted replaced
34637:5f79f5f8487a 34638:021607b4ef49
869 869
870 if util.parsebool(options['pager']): 870 if util.parsebool(options['pager']):
871 # ui.pager() expects 'internal-always-' prefix in this case 871 # ui.pager() expects 'internal-always-' prefix in this case
872 ui.pager('internal-always-' + cmd) 872 ui.pager('internal-always-' + cmd)
873 elif options['pager'] != 'auto': 873 elif options['pager'] != 'auto':
874 ui.disablepager() 874 for ui_ in uis:
875 ui_.disablepager()
875 876
876 if options['version']: 877 if options['version']:
877 return commands.version_(ui) 878 return commands.version_(ui)
878 if options['help']: 879 if options['help']:
879 return commands.help_(ui, cmd, command=cmd is not None) 880 return commands.help_(ui, cmd, command=cmd is not None)