perf: ensure HGRCPATH is exported on Windows
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 16 Jun 2017 20:49:32 -0400
changeset 32888 04fa5520d167
parent 32887 28a0e6a4e824
child 32889 a7310a477966
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.
contrib/perf.py
--- 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()