# HG changeset patch # User Augie Fackler # Date 2019-05-29 14:00:54 # Node ID 4372d56112c9b3b027b703cf261bc7cf858c1666 # Parent c2deb25128239b795acd3bf5d08c0ff937a01bd9 perf: fix some missing b prefixes # skip-blame just b prefixes Differential Revision: https://phab.mercurial-scm.org/D6457 diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -969,17 +969,17 @@ def _getmergerevs(repo, opts): input: options dictionnary with `rev`, `from` and `bse` output: (localctx, otherctx, basectx) """ - if opts['from']: - fromrev = scmutil.revsingle(repo, opts['from']) + if opts[b'from']: + fromrev = scmutil.revsingle(repo, opts[b'from']) wctx = repo[fromrev] else: wctx = repo[None] # we don't want working dir files to be stat'd in the benchmark, so # prime that cache wctx.dirty() - rctx = scmutil.revsingle(repo, opts['rev'], opts['rev']) - if opts['base']: - fromrev = scmutil.revsingle(repo, opts['base']) + rctx = scmutil.revsingle(repo, opts[b'rev'], opts[b'rev']) + if opts[b'base']: + fromrev = scmutil.revsingle(repo, opts[b'base']) ancestor = repo[fromrev] else: ancestor = wctx.ancestor(rctx)