Mercurial > hg-stable
changeset 46196:96b73671753a
contrib: py3 compat for perfnodemap
Differential Revision: https://phab.mercurial-scm.org/D9687
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Wed, 06 Jan 2021 19:41:15 +0100 |
parents | d6a9e690d620 |
children | 2607a9346398 |
files | contrib/perf.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/perf.py Thu Jan 07 14:15:24 2021 +0100 +++ b/contrib/perf.py Wed Jan 06 19:41:15 2021 +0100 @@ -1627,12 +1627,12 @@ mercurial.revlog._prereadsize = 2 ** 24 # disable lazy parser in old hg unfi = repo.unfiltered() - clearcaches = opts['clear_caches'] + clearcaches = opts[b'clear_caches'] # find the filecache func directly # This avoid polluting the benchmark with the filecache logic makecl = unfi.__class__.changelog.func if not opts[b'rev']: - raise error.Abort('use --rev to specify revisions to look up') + raise error.Abort(b'use --rev to specify revisions to look up') revs = scmutil.revrange(repo, opts[b'rev']) cl = repo.changelog nodes = [cl.node(r) for r in revs]