Mercurial > public > mercurial-scm > hg
comparison mercurial/scmwindows.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 | 344e68882cd3 |
children | d74b0cff94a9 |
comparison
equal
deleted
inserted
replaced
32077:de115db3688e | 32078:bf5e13e38390 |
---|---|
13 try: | 13 try: |
14 import _winreg as winreg | 14 import _winreg as winreg |
15 winreg.CloseKey | 15 winreg.CloseKey |
16 except ImportError: | 16 except ImportError: |
17 import winreg | 17 import winreg |
18 | |
19 # MS-DOS 'more' is the only pager available by default on Windows. | |
20 fallbackpager = 'more' | |
18 | 21 |
19 def systemrcpath(): | 22 def systemrcpath(): |
20 '''return default os-specific hgrc search path''' | 23 '''return default os-specific hgrc search path''' |
21 rcpath = [] | 24 rcpath = [] |
22 filename = util.executablepath() | 25 filename = util.executablepath() |