mercurial/rcutil.py
branchstable
changeset 44243 238790674d69
parent 44032 2d4cad94d08a
child 45942 89a2afe31e82
--- a/mercurial/rcutil.py	Mon Feb 03 20:12:47 2020 -0500
+++ b/mercurial/rcutil.py	Tue Feb 04 12:31:19 2020 +0100
@@ -112,3 +112,8 @@
     intended to be set before starting a pager.
     '''
     return {b'LESS': b'FRX', b'LV': b'-c'}
+
+
+def use_repo_hgrc():
+    """True if repositories `.hg/hgrc` config should be read"""
+    return b'HGRCSKIPREPO' not in encoding.environ