D3083: perf: make perfmanifest and perfnodelookup work with revsets
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Wed Apr 4 20:50:56 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5bcd5859b505: perf: make perfmanifest and perfnodelookup work with revsets (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3083?vs=7657&id=7669
REVISION DETAIL
https://phab.mercurial-scm.org/D3083
AFFECTED FILES
contrib/perf.py
CHANGE DETAILS
diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -767,7 +767,7 @@
@command('perfchangeset', formatteropts)
def perfchangeset(ui, repo, rev, **opts):
timer, fm = gettimer(ui, opts)
- n = repo[rev].node()
+ n = scmutil.revsingle(repo, rev).node()
def d():
repo.changelog.read(n)
#repo.changelog._cache = None
@@ -853,7 +853,7 @@
timer, fm = gettimer(ui, opts)
import mercurial.revlog
mercurial.revlog._prereadsize = 2**24 # disable lazy parser in old hg
- n = repo[rev].node()
+ n = scmutil.revsingle(repo, rev).node()
cl = mercurial.revlog.revlog(getsvfs(repo), "00changelog.i")
def d():
cl.rev(n)
To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list