mercurial/phases.py
changeset 51413 0c04074f5414
parent 51412 1df8d84e7c99
child 51414 e0d329491709
--- a/mercurial/phases.py	Wed Feb 21 11:59:28 2024 +0100
+++ b/mercurial/phases.py	Wed Feb 21 13:01:25 2024 +0100
@@ -382,8 +382,7 @@
 
     def hasnonpublicphases(self, repo: "localrepo.localrepository") -> bool:
         """detect if there are revisions with non-public phase"""
-        repo = repo.unfiltered()
-        self._ensure_phase_sets(repo)
+        # XXX deprecate the unused repo argument
         return any(
             revs for phase, revs in self._phaseroots.items() if phase != public
         )