Mercurial > public > mercurial-scm > hg
comparison mercurial/scmposix.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 | 7c09b071318a |
children | d74b0cff94a9 |
comparison
equal
deleted
inserted
replaced
32077:de115db3688e | 32078:bf5e13e38390 |
---|---|
9 from . import ( | 9 from . import ( |
10 encoding, | 10 encoding, |
11 osutil, | 11 osutil, |
12 pycompat, | 12 pycompat, |
13 ) | 13 ) |
14 | |
15 # BSD 'more' escapes ANSI color sequences by default. This can be disabled by | |
16 # $MORE variable, but there's no compatible option with Linux 'more'. Given | |
17 # OS X is widely used and most modern Unix systems would have 'less', setting | |
18 # 'less' as the default seems reasonable. | |
19 fallbackpager = 'less' | |
14 | 20 |
15 def _rcfiles(path): | 21 def _rcfiles(path): |
16 rcs = [os.path.join(path, 'hgrc')] | 22 rcs = [os.path.join(path, 'hgrc')] |
17 rcdir = os.path.join(path, 'hgrc.d') | 23 rcdir = os.path.join(path, 'hgrc.d') |
18 try: | 24 try: |