Patchwork D4017: perfmoonwalk: make work with filtered repo

login
register
mail settings
Submitter phabricator
Date Aug. 1, 2018, 7:28 p.m.
Message ID <63bb807b8d5a793b2d3d95939342a85c@localhost.localdomain>
Download mbox | patch
Permalink /patch/33043/
State Not Applicable
Headers show

Comments

phabricator - Aug. 1, 2018, 7:28 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0848ed4ee7ac: perfmoonwalk: make work with filtered repo (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4017?vs=9717&id=9729

REVISION DETAIL
  https://phab.mercurial-scm.org/D4017

AFFECTED FILES
  contrib/perf.py

CHANGE DETAILS




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

Patch

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -923,7 +923,7 @@ 
     """
     timer, fm = gettimer(ui, opts)
     def moonwalk():
-        for i in xrange(len(repo), -1, -1):
+        for i in repo.changelog.revs(start=(len(repo) - 1), stop=-1):
             ctx = repo[i]
             ctx.branch() # read changelog data (in addition to the index)
     timer(moonwalk)