Mercurial > hg
comparison contrib/perf.py @ 40945:ebc471ce9fad
py3: add a missing b'' prefix in contrib/perf.py
# skip-blame because just b'' prefixes
This fixes test-contrib-perf.t on Python 3 which started failing.
Differential Revision: https://phab.mercurial-scm.org/D5421
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Fri, 14 Dec 2018 19:21:28 +0300 |
parents | db6cace18765 |
children | a314eafd7c8d |
comparison
equal
deleted
inserted
replaced
40944:789515904b03 | 40945:ebc471ce9fad |
---|---|
1012 | 1012 |
1013 timer(runone, setup=setupone, title=b"load") | 1013 timer(runone, setup=setupone, title=b"load") |
1014 fm.end() | 1014 fm.end() |
1015 | 1015 |
1016 @command(b'perfindex', [ | 1016 @command(b'perfindex', [ |
1017 (b'', b'rev', '', b'revision to be looked up (default tip)'), | 1017 (b'', b'rev', b'', b'revision to be looked up (default tip)'), |
1018 ] + formatteropts) | 1018 ] + formatteropts) |
1019 def perfindex(ui, repo, **opts): | 1019 def perfindex(ui, repo, **opts): |
1020 import mercurial.revlog | 1020 import mercurial.revlog |
1021 opts = _byteskwargs(opts) | 1021 opts = _byteskwargs(opts) |
1022 timer, fm = gettimer(ui, opts) | 1022 timer, fm = gettimer(ui, opts) |