D5425: perf: add two more missing b prefixes for Python 3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Fri Dec 14 17:14:55 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
1. skip-blame just two more b prefixes
REPOSITORY
rHG Mercurial
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
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list