mercurial/repoview.py
changeset 51406 f8bf1a8e9181
parent 51262 f20c4b307a5a
child 51469 d54f0692820d
--- a/mercurial/repoview.py	Tue Feb 20 21:40:08 2024 +0100
+++ b/mercurial/repoview.py	Tue Feb 20 21:40:13 2024 +0100
@@ -160,7 +160,7 @@
     firstmutable = len(cl)
     roots = repo._phasecache.nonpublicphaseroots(repo)
     if roots:
-        firstmutable = min(firstmutable, min(cl.rev(r) for r in roots))
+        firstmutable = min(firstmutable, min(roots))
     # protect from nullrev root
     firstmutable = max(0, firstmutable)
     return frozenset(range(firstmutable, len(cl)))