mercurial/scmposix.py
branchstable
changeset 32078 bf5e13e38390
parent 31348 7c09b071318a
child 32248 d74b0cff94a9
--- a/mercurial/scmposix.py	Tue Apr 25 22:10:26 2017 -0400
+++ b/mercurial/scmposix.py	Fri Apr 28 20:51:14 2017 +0900
@@ -12,6 +12,12 @@
     pycompat,
 )
 
+# BSD 'more' escapes ANSI color sequences by default. This can be disabled by
+# $MORE variable, but there's no compatible option with Linux 'more'. Given
+# OS X is widely used and most modern Unix systems would have 'less', setting
+# 'less' as the default seems reasonable.
+fallbackpager = 'less'
+
 def _rcfiles(path):
     rcs = [os.path.join(path, 'hgrc')]
     rcdir = os.path.join(path, 'hgrc.d')