mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
chg: ignore HG_* in confighash
The environment variables `HG_*` are usually used by hooks. Unlike `HGPLAIN` etc, they do not actually affect hg's behavior. So do not include them in confighash. This would avoid spawning an unbound number of chg server processes if commit hook calls hg frequently.
This commit is contained in:
parent
9d833da676
commit
44c0d5d616
@ -77,7 +77,7 @@ _configsections = [
|
||||
# sensitive environment variables affecting confighash
|
||||
_envre = re.compile(r'''\A(?:
|
||||
CHGHG
|
||||
|HG.*
|
||||
|HG(?:[A-Z].*)?
|
||||
|LANG(?:UAGE)?
|
||||
|LC_.*
|
||||
|LD_.*
|
||||
|
Loading…
Reference in New Issue
Block a user