# HG changeset patch # User Jun Wu # Date 2017-05-10 18:55:22 # Node ID 6096d27dc1193070fd56ea94b5227da1ef69e5f3 # Parent 218ca8526ec00a05548a3da6194dfe0c8aa2e0e0 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. diff --git a/mercurial/chgserver.py b/mercurial/chgserver.py --- a/mercurial/chgserver.py +++ b/mercurial/chgserver.py @@ -75,7 +75,8 @@ def _hashlist(items): # sensitive environment variables affecting confighash _envre = re.compile(r'''\A(?: CHGHG - |HG(?:[A-Z].*)? + |HG(?:DEMANDIMPORT|EMITWARNINGS|MODULEPOLICY|PROF|RCPATH)? + |HG(?:ENCODING|PLAIN).* |LANG(?:UAGE)? |LC_.* |LD_.*