##// END OF EJS Templates
py3: restore perfstartup() prior to b456b2e0ad9f on Windows...
Matt Harbison -
r40385:1524c305 default
parent child Browse files
Show More
@@ -970,13 +970,13 b' def perfindex(ui, repo, **opts):'
970 def perfstartup(ui, repo, **opts):
970 def perfstartup(ui, repo, **opts):
971 opts = _byteskwargs(opts)
971 opts = _byteskwargs(opts)
972 timer, fm = gettimer(ui, opts)
972 timer, fm = gettimer(ui, opts)
973 cmd = fsencode(sys.argv[0])
974 def d():
973 def d():
975 if os.name != r'nt':
974 if os.name != r'nt':
976 os.system(b"HGRCPATH= %s version -q > /dev/null" % cmd)
975 os.system(b"HGRCPATH= %s version -q > /dev/null" %
976 fsencode(sys.argv[0]))
977 else:
977 else:
978 os.environ[r'HGRCPATH'] = r' '
978 os.environ[r'HGRCPATH'] = r' '
979 os.system(r"%s version -q > NUL" % cmd)
979 os.system(r"%s version -q > NUL" % sys.argv[0])
980 timer(d)
980 timer(d)
981 fm.end()
981 fm.end()
982
982
General Comments 0
You need to be logged in to leave comments. Login now