diff contrib/perf.py @ 32888:04fa5520d167

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 16 Jun 2017 20:49:32 -0400
parents 2b0a8b0f3435
children b3538c03a804
line wrap: on
line diff
--- a/contrib/perf.py	Fri Jun 16 20:35:45 2017 -0400
+++ b/contrib/perf.py	Fri Jun 16 20:49:32 2017 -0400
@@ -661,7 +661,7 @@
         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()