Patchwork D3083: perf: make perfmanifest and perfnodelookup work with revsets

login
register
mail settings
Submitter phabricator
Date April 5, 2018, 12:50 a.m.
Message ID <1b6e1380254965bf826b3402cdd8bb1a@localhost.localdomain>
Download mbox | patch
Permalink /patch/30311/
State Not Applicable
Headers show

Comments

phabricator - April 5, 2018, 12:50 a.m.
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




To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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)