Mercurial > public > mercurial-scm > hg-stable
diff contrib/perf.py @ 32337:d7efaf6275a7
perf: always pass node to revlog.revision()
I removed this in 73c3e226d2fc thinking it wasn't necessary. In fact,
we need to always pass a node so the code is compatible with revisions
before d7d64b89a65c.
The new code uses a variable to avoid check-style complaining
about "r.revision(r.node(" patterns.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 15 May 2017 19:37:11 -0700 |
parents | 4c6b2076d292 |
children | 46ba2cdda476 |
line wrap: on
line diff
--- a/contrib/perf.py Mon May 15 18:55:58 2017 -0700 +++ b/contrib/perf.py Mon May 15 19:37:11 2017 -0700 @@ -865,7 +865,9 @@ dist = -1 * dist for x in xrange(beginrev, endrev, dist): - rl.revision(x) + # Old revisions don't support passing int. + n = rl.node(x) + rl.revision(n) timer, fm = gettimer(ui, opts) timer(d)