comparison mercurial/chgserver.py @ 30592:b3643bfc7fcb

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.
author Jun Wu <quark@fb.com>
date Wed, 14 Dec 2016 02:17:59 +0000
parents cfb227016d01
children 201b44c8875c
comparison
equal deleted inserted replaced
30591:2d555d753f0e 30592:b3643bfc7fcb
75 ] 75 ]
76 76
77 # sensitive environment variables affecting confighash 77 # sensitive environment variables affecting confighash
78 _envre = re.compile(r'''\A(?: 78 _envre = re.compile(r'''\A(?:
79 CHGHG 79 CHGHG
80 |HG.* 80 |HG(?:[A-Z].*)?
81 |LANG(?:UAGE)? 81 |LANG(?:UAGE)?
82 |LC_.* 82 |LC_.*
83 |LD_.* 83 |LD_.*
84 |PATH 84 |PATH
85 |PYTHON.* 85 |PYTHON.*