# HG changeset patch # User Jun Wu # Date 2016-12-14 02:17:59 # Node ID b3643bfc7fcb4961587a090ce2bae2334010438b # Parent 2d555d753f0e2f7bdb427bb125be416f791c00f6 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. diff --git a/mercurial/chgserver.py b/mercurial/chgserver.py --- a/mercurial/chgserver.py +++ b/mercurial/chgserver.py @@ -77,7 +77,7 @@ def _hashlist(items): # sensitive environment variables affecting confighash _envre = re.compile(r'''\A(?: CHGHG - |HG.* + |HG(?:[A-Z].*)? |LANG(?:UAGE)? |LC_.* |LD_.*