Mercurial > public > mercurial-scm > hg
comparison mercurial/chgserver.py @ 32271:6096d27dc119
chgserver: more explicit about sensitive environ variables
Environment variables like HGUSER, HGEDITOR, HGEDITFROM should not trigger
a new chgserver. This patch uses a whitelist for environ variables starting
with "HG" to reduce the number of servers.
I have went through `grep -o "[\"']HG[A-Z_0-9]*['\"]" -hR . | sort -u` so
the list should be up-to-date.
author | Jun Wu <quark@fb.com> |
---|---|
date | Wed, 10 May 2017 11:55:22 -0700 |
parents | 1ada3d18e7fb |
children | 0407a51b9d8c |
comparison
equal
deleted
inserted
replaced
32270:218ca8526ec0 | 32271:6096d27dc119 |
---|---|
73 ] | 73 ] |
74 | 74 |
75 # sensitive environment variables affecting confighash | 75 # sensitive environment variables affecting confighash |
76 _envre = re.compile(r'''\A(?: | 76 _envre = re.compile(r'''\A(?: |
77 CHGHG | 77 CHGHG |
78 |HG(?:[A-Z].*)? | 78 |HG(?:DEMANDIMPORT|EMITWARNINGS|MODULEPOLICY|PROF|RCPATH)? |
79 |HG(?:ENCODING|PLAIN).* | |
79 |LANG(?:UAGE)? | 80 |LANG(?:UAGE)? |
80 |LC_.* | 81 |LC_.* |
81 |LD_.* | 82 |LD_.* |
82 |PATH | 83 |PATH |
83 |PYTHON.* | 84 |PYTHON.* |