D6450: py3: make test-contrib-perf.t pass again
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Tue May 28 23:17:10 UTC 2019
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
1. skip-blame because just b'' prefixes
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6450
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
@@ -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)
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list