# HG changeset patch # User Matt Harbison # Date 2017-06-17 00:49:32 # Node ID 04fa5520d167a2a2c485017b49463407cc6fdf85 # Parent 28a0e6a4e82453a7b5ff99310bf1a9e22906591e perf: ensure HGRCPATH is exported on Windows After dropping the garbage collector hack, `hg perfstartup` started yelling about not being able to import the evolve extension, which I have in my user config. Launching `env` shows that an empty HGRCPATH isn't exported to the environment. Since `env` doesn't quote, I have no idea if the variable is trimmed, but Mercurial doesn't complain when processing it. diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -661,7 +661,7 @@ def perfstartup(ui, repo, **opts): if os.name != 'nt': os.system("HGRCPATH= %s version -q > /dev/null" % cmd) else: - os.environ['HGRCPATH'] = '' + os.environ['HGRCPATH'] = ' ' os.system("%s version -q > NUL" % cmd) timer(d) fm.end()