changeset 42392:4372d56112c9

perf: fix some missing b prefixes # skip-blame just b prefixes Differential Revision: https://phab.mercurial-scm.org/D6457
author Augie Fackler <augie@google.com>
date Wed, 29 May 2019 10:00:54 -0400
parents c2deb2512823
children a84564b1a0b1
files contrib/perf.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/perf.py	Wed May 29 10:00:30 2019 -0400
+++ b/contrib/perf.py	Wed May 29 10:00:54 2019 -0400
@@ -969,17 +969,17 @@
     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)