# HG changeset patch # User Joerg Sonnenberger # Date 2021-01-06 18:41:15 # Node ID 96b73671753a067c0e66fa2596f1404f9ecd1206 # Parent d6a9e690d620349d43356ae2b782440e05028c8a contrib: py3 compat for perfnodemap Differential Revision: https://phab.mercurial-scm.org/D9687 diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -1627,12 +1627,12 @@ def perfnodemap(ui, repo, **opts): 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]