Mercurial > public > mercurial-scm > hg
comparison mercurial/ui.py @ 32078:bf5e13e38390 stable
pager: use less as a fallback on Unix
This seems reasonable choice per discussion, and the default-default of Git.
See also the inline-comment for why.
https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-April/097042.html
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 28 Apr 2017 20:51:14 +0900 |
parents | 1bfb9a63b98e |
children | 4d438efb825a |
comparison
equal
deleted
inserted
replaced
32077:de115db3688e | 32078:bf5e13e38390 |
---|---|
855 # We only want to paginate if the ui appears to be | 855 # We only want to paginate if the ui appears to be |
856 # interactive, the user didn't say HGPLAIN or | 856 # interactive, the user didn't say HGPLAIN or |
857 # HGPLAINEXCEPT=pager, and the user didn't specify --debug. | 857 # HGPLAINEXCEPT=pager, and the user didn't specify --debug. |
858 return | 858 return |
859 | 859 |
860 fallbackpager = 'more' | 860 pagercmd = self.config('pager', 'pager', rcutil.fallbackpager) |
861 pagercmd = self.config('pager', 'pager', fallbackpager) | |
862 if not pagercmd: | 861 if not pagercmd: |
863 return | 862 return |
864 | 863 |
865 pagerenv = {} | 864 pagerenv = {} |
866 for name, value in rcutil.defaultpagerenv().items(): | 865 for name, value in rcutil.defaultpagerenv().items(): |