D4017: perfmoonwalk: make work with filtered repo

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed Aug 1 15:28:06 EDT 2018


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

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)



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


More information about the Mercurial-devel mailing list