Patchwork D6457: perf: fix some missing b prefixes

login
register
mail settings
Submitter phabricator
Date May 29, 2019, 2:33 p.m.
Message ID <f6c449abac08384973e6a2ac3ba355cb@localhost.localdomain>
Download mbox | patch
Permalink /patch/40268/
State Not Applicable
Headers show

Comments

phabricator - May 29, 2019, 2:33 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4372d56112c9: perf: fix some missing b prefixes (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6457?vs=15287&id=15292

REVISION DETAIL
  https://phab.mercurial-scm.org/D6457

AFFECTED FILES
  contrib/perf.py

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -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)