mercurial/localrepo.py
branchstable
changeset 44243 238790674d69
parent 44124 d56a2d6f34f0
child 44308 5962fd0d1045
--- a/mercurial/localrepo.py	Mon Feb 03 20:12:47 2020 -0500
+++ b/mercurial/localrepo.py	Tue Feb 04 12:31:19 2020 +0100
@@ -53,6 +53,7 @@
     phases,
     pushkey,
     pycompat,
+    rcutil,
     repoview,
     revset,
     revsetlang,
@@ -676,7 +677,7 @@
     configs are loaded. For example, an extension may wish to pull in
     configs from alternate files or sources.
     """
-    if b'HGRCSKIPREPO' in encoding.environ:
+    if not rcutil.use_repo_hgrc():
         return False
     try:
         ui.readconfig(hgvfs.join(b'hgrc'), root=wdirvfs.base)