D5425: perf: add two more missing b prefixes for Python 3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Fri Dec 14 12:31:06 EST 2018
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
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()
To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list