##// END OF EJS Templates
perf: make perfmanifest and perfnodelookup work with revsets...
Martin von Zweigbergk -
r37373:5bcd5859 default
parent child Browse files
Show More
@@ -767,7 +767,7 b' def perfmanifest(ui, repo, rev, **opts):'
767 @command('perfchangeset', formatteropts)
767 @command('perfchangeset', formatteropts)
768 def perfchangeset(ui, repo, rev, **opts):
768 def perfchangeset(ui, repo, rev, **opts):
769 timer, fm = gettimer(ui, opts)
769 timer, fm = gettimer(ui, opts)
770 n = repo[rev].node()
770 n = scmutil.revsingle(repo, rev).node()
771 def d():
771 def d():
772 repo.changelog.read(n)
772 repo.changelog.read(n)
773 #repo.changelog._cache = None
773 #repo.changelog._cache = None
@@ -853,7 +853,7 b' def perfnodelookup(ui, repo, rev, **opts'
853 timer, fm = gettimer(ui, opts)
853 timer, fm = gettimer(ui, opts)
854 import mercurial.revlog
854 import mercurial.revlog
855 mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg
855 mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg
856 n = repo[rev].node()
856 n = scmutil.revsingle(repo, rev).node()
857 cl = mercurial.revlog.revlog(getsvfs(repo), "00changelog.i")
857 cl = mercurial.revlog.revlog(getsvfs(repo), "00changelog.i")
858 def d():
858 def d():
859 cl.rev(n)
859 cl.rev(n)
General Comments 0
You need to be logged in to leave comments. Login now