mercurial/localrepo.py
branchstable
changeset 44243 238790674d69
parent 44124 d56a2d6f34f0
child 44308 5962fd0d1045
equal deleted inserted replaced
44242:847e582f3cc9 44243:238790674d69
    51     obsolete,
    51     obsolete,
    52     pathutil,
    52     pathutil,
    53     phases,
    53     phases,
    54     pushkey,
    54     pushkey,
    55     pycompat,
    55     pycompat,
       
    56     rcutil,
    56     repoview,
    57     repoview,
    57     revset,
    58     revset,
    58     revsetlang,
    59     revsetlang,
    59     scmutil,
    60     scmutil,
    60     sparse,
    61     sparse,
   674 
   675 
   675     Extensions should monkeypatch this function to modify how per-repo
   676     Extensions should monkeypatch this function to modify how per-repo
   676     configs are loaded. For example, an extension may wish to pull in
   677     configs are loaded. For example, an extension may wish to pull in
   677     configs from alternate files or sources.
   678     configs from alternate files or sources.
   678     """
   679     """
   679     if b'HGRCSKIPREPO' in encoding.environ:
   680     if not rcutil.use_repo_hgrc():
   680         return False
   681         return False
   681     try:
   682     try:
   682         ui.readconfig(hgvfs.join(b'hgrc'), root=wdirvfs.base)
   683         ui.readconfig(hgvfs.join(b'hgrc'), root=wdirvfs.base)
   683         return True
   684         return True
   684     except IOError:
   685     except IOError: