Patchwork D5425: perf: add two more missing b prefixes for Python 3

login
register
mail settings
Submitter phabricator
Date Dec. 14, 2018, 5:31 p.m.
Message ID <8e64c2874da3c0036955d653ec9bdbac@localhost.localdomain>
Download mbox | patch
Permalink /patch/37154/
State Not Applicable
Headers show

Comments

phabricator - Dec. 14, 2018, 5:31 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbad316cda645: perf: add two more missing b prefixes for Python 3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5425?vs=12850&id=12853

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

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
@@ -1021,10 +1021,10 @@ 
     opts = _byteskwargs(opts)
     timer, fm = gettimer(ui, opts)
     mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg
-    if opts['rev'] is None:
+    if opts[b'rev'] is None:
         n = repo[b"tip"].node()
     else:
-        rev = scmutil.revsingle(repo, opts['rev'])
+        rev = scmutil.revsingle(repo, opts[b'rev'])
         n = repo[rev].node()
 
     unfi = repo.unfiltered()