Show More
@@ -53,6 +53,7 b' from . import (' | |||
|
53 | 53 | phases, |
|
54 | 54 | pushkey, |
|
55 | 55 | pycompat, |
|
56 | rcutil, | |
|
56 | 57 | repoview, |
|
57 | 58 | revset, |
|
58 | 59 | revsetlang, |
@@ -676,7 +677,7 b' def loadhgrc(ui, wdirvfs, hgvfs, require' | |||
|
676 | 677 | configs are loaded. For example, an extension may wish to pull in |
|
677 | 678 | configs from alternate files or sources. |
|
678 | 679 | """ |
|
679 | if b'HGRCSKIPREPO' in encoding.environ: | |
|
680 | if not rcutil.use_repo_hgrc(): | |
|
680 | 681 | return False |
|
681 | 682 | try: |
|
682 | 683 | ui.readconfig(hgvfs.join(b'hgrc'), root=wdirvfs.base) |
@@ -112,3 +112,8 b' def defaultpagerenv():' | |||
|
112 | 112 | intended to be set before starting a pager. |
|
113 | 113 | ''' |
|
114 | 114 | return {b'LESS': b'FRX', b'LV': b'-c'} |
|
115 | ||
|
116 | ||
|
117 | def use_repo_hgrc(): | |
|
118 | """True if repositories `.hg/hgrc` config should be read""" | |
|
119 | return b'HGRCSKIPREPO' not in encoding.environ |
General Comments 0
You need to be logged in to leave comments.
Login now