##// END OF EJS Templates
contrib: py3 compat for perfnodemap...
Joerg Sonnenberger -
r46812:96b73671 default
parent child Browse files
Show More
@@ -1627,12 +1627,12 b' def perfnodemap(ui, repo, **opts):'
1627 mercurial.revlog._prereadsize = 2 ** 24 # disable lazy parser in old hg
1627 mercurial.revlog._prereadsize = 2 ** 24 # disable lazy parser in old hg
1628
1628
1629 unfi = repo.unfiltered()
1629 unfi = repo.unfiltered()
1630 clearcaches = opts['clear_caches']
1630 clearcaches = opts[b'clear_caches']
1631 # find the filecache func directly
1631 # find the filecache func directly
1632 # This avoid polluting the benchmark with the filecache logic
1632 # This avoid polluting the benchmark with the filecache logic
1633 makecl = unfi.__class__.changelog.func
1633 makecl = unfi.__class__.changelog.func
1634 if not opts[b'rev']:
1634 if not opts[b'rev']:
1635 raise error.Abort('use --rev to specify revisions to look up')
1635 raise error.Abort(b'use --rev to specify revisions to look up')
1636 revs = scmutil.revrange(repo, opts[b'rev'])
1636 revs = scmutil.revrange(repo, opts[b'rev'])
1637 cl = repo.changelog
1637 cl = repo.changelog
1638 nodes = [cl.node(r) for r in revs]
1638 nodes = [cl.node(r) for r in revs]
General Comments 0
You need to be logged in to leave comments. Login now