Mercurial > hg
comparison contrib/perf.py @ 40948:a314eafd7c8d
perf: add two more missing b prefixes for Python 3
# skip-blame just two more b prefixes
Differential Revision: https://phab.mercurial-scm.org/D5425
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 14 Dec 2018 12:00:38 -0500 |
parents | ebc471ce9fad |
children | 74ee5ff1e81c |
comparison
equal
deleted
inserted
replaced
40947:9e462fb88f79 | 40948:a314eafd7c8d |
---|---|
1019 def perfindex(ui, repo, **opts): | 1019 def perfindex(ui, repo, **opts): |
1020 import mercurial.revlog | 1020 import mercurial.revlog |
1021 opts = _byteskwargs(opts) | 1021 opts = _byteskwargs(opts) |
1022 timer, fm = gettimer(ui, opts) | 1022 timer, fm = gettimer(ui, opts) |
1023 mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg | 1023 mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg |
1024 if opts['rev'] is None: | 1024 if opts[b'rev'] is None: |
1025 n = repo[b"tip"].node() | 1025 n = repo[b"tip"].node() |
1026 else: | 1026 else: |
1027 rev = scmutil.revsingle(repo, opts['rev']) | 1027 rev = scmutil.revsingle(repo, opts[b'rev']) |
1028 n = repo[rev].node() | 1028 n = repo[rev].node() |
1029 | 1029 |
1030 unfi = repo.unfiltered() | 1030 unfi = repo.unfiltered() |
1031 # find the filecache func directly | 1031 # find the filecache func directly |
1032 # This avoid polluting the benchmark with the filecache logic | 1032 # This avoid polluting the benchmark with the filecache logic |