contrib/perf.py
changeset 51413 8fc92193a2cf
parent 51152 6a78b5a1d1ab
child 51436 827b89714a8d
--- a/contrib/perf.py	Wed Feb 21 12:01:09 2024 +0100
+++ b/contrib/perf.py	Thu Feb 22 10:56:05 2024 +0100
@@ -1719,6 +1719,7 @@
     timer, fm = gettimer(ui, opts)
     _phases = repo._phasecache
     full = opts.get(b'full')
+    tip_rev = repo.changelog.tiprev()
 
     def d():
         phases = _phases
@@ -1726,7 +1727,7 @@
             clearfilecache(repo, b'_phasecache')
             phases = repo._phasecache
         phases.invalidate()
-        phases.loadphaserevs(repo)
+        phases.phase(repo, tip_rev)
 
     timer(d)
     fm.end()