Show More
@@ -476,9 +476,10 b' def perfrevlog(ui, repo, file_, **opts):' | |||
|
476 | 476 | timer, fm = gettimer(ui, opts) |
|
477 | 477 | from mercurial import revlog |
|
478 | 478 | dist = opts['dist'] |
|
479 | _len = getlen(ui) | |
|
479 | 480 | def d(): |
|
480 | 481 | r = revlog.revlog(lambda fn: open(fn, 'rb'), file_) |
|
481 | for x in xrange(0, len(r), dist): | |
|
482 | for x in xrange(0, _len(r), dist): | |
|
482 | 483 | r.revision(r.node(x)) |
|
483 | 484 | |
|
484 | 485 | timer(d) |
General Comments 0
You need to be logged in to leave comments.
Login now