changeset 30587: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 2d555d753f0e
children be0e7af80543
files mercurial/chgserver.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/chgserver.py	Tue Dec 13 20:53:40 2016 +0530
+++ b/mercurial/chgserver.py	Wed Dec 14 02:17:59 2016 +0000
@@ -77,7 +77,7 @@
 # sensitive environment variables affecting confighash
 _envre = re.compile(r'''\A(?:
                     CHGHG
-                    |HG.*
+                    |HG(?:[A-Z].*)?
                     |LANG(?:UAGE)?
                     |LC_.*
                     |LD_.*