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