Show More
@@ -921,11 +921,11 b' def perfstartup(ui, repo, **opts):' | |||||
921 | timer, fm = gettimer(ui, opts) |
|
921 | timer, fm = gettimer(ui, opts) | |
922 | cmd = sys.argv[0] |
|
922 | cmd = sys.argv[0] | |
923 | def d(): |
|
923 | def d(): | |
924 |
if os.name != |
|
924 | if os.name != r'nt': | |
925 | os.system(b"HGRCPATH= %s version -q > /dev/null" % cmd) |
|
925 | os.system(b"HGRCPATH= %s version -q > /dev/null" % cmd) | |
926 | else: |
|
926 | else: | |
927 |
os.environ[ |
|
927 | os.environ[r'HGRCPATH'] = r' ' | |
928 |
os.system( |
|
928 | os.system(r"%s version -q > NUL" % cmd) | |
929 | timer(d) |
|
929 | timer(d) | |
930 | fm.end() |
|
930 | fm.end() | |
931 |
|
931 | |||
@@ -1059,7 +1059,7 b' def perftemplating(ui, repo, testedtempl' | |||||
1059 | hint=b"use 4.3 or later") |
|
1059 | hint=b"use 4.3 or later") | |
1060 |
|
1060 | |||
1061 | nullui = ui.copy() |
|
1061 | nullui = ui.copy() | |
1062 |
nullui.fout = open(os.devnull, |
|
1062 | nullui.fout = open(os.devnull, r'wb') | |
1063 | nullui.disablepager() |
|
1063 | nullui.disablepager() | |
1064 | revs = opts.get(b'rev') |
|
1064 | revs = opts.get(b'rev') | |
1065 | if not revs: |
|
1065 | if not revs: |
General Comments 0
You need to be logged in to leave comments.
Login now