Mercurial > hg
comparison mercurial/rcutil.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 | e518192d6bac |
children | d74b0cff94a9 |
comparison
equal
deleted
inserted
replaced
32077:de115db3688e | 32078:bf5e13e38390 |
---|---|
19 if pycompat.osname == 'nt': | 19 if pycompat.osname == 'nt': |
20 from . import scmwindows as scmplatform | 20 from . import scmwindows as scmplatform |
21 else: | 21 else: |
22 from . import scmposix as scmplatform | 22 from . import scmposix as scmplatform |
23 | 23 |
24 fallbackpager = scmplatform.fallbackpager | |
24 systemrcpath = scmplatform.systemrcpath | 25 systemrcpath = scmplatform.systemrcpath |
25 userrcpath = scmplatform.userrcpath | 26 userrcpath = scmplatform.userrcpath |
26 | 27 |
27 def _expandrcpath(path): | 28 def _expandrcpath(path): |
28 '''path could be a file or a directory. return a list of file paths''' | 29 '''path could be a file or a directory. return a list of file paths''' |