mercurial/rcutil.py
changeset 31954 e518192d6bac
parent 31694 10d88dc7c010
child 32078 bf5e13e38390
--- a/mercurial/rcutil.py	Thu Apr 13 14:48:18 2017 -0400
+++ b/mercurial/rcutil.py	Thu Apr 13 08:27:19 2017 -0700
@@ -90,3 +90,9 @@
         _rccomponents.append(envrc)
         _rccomponents.extend(normpaths(userrcpath()))
     return _rccomponents
+
+def defaultpagerenv():
+    '''return a dict of default environment variables and their values,
+    intended to be set before starting a pager.
+    '''
+    return {'LESS': 'FRX', 'LV': '-c'}