head-revs: stop calling headrevsfiltered
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 25 Sep 2024 17:11:32 +0200
changeset 51997 6204fc81a291
parent 51996 fb4d49c52c06
child 51998 8060257fd918
head-revs: stop calling headrevsfiltered The `headrevs` method have been accepting filter since Mercurial 3.2ยน. I guess we can rely on it for now. (except the Rust extension that just gained this capability, but it has it now)
mercurial/repoview.py
--- a/mercurial/repoview.py	Wed Sep 25 21:43:21 2024 +0200
+++ b/mercurial/repoview.py	Wed Sep 25 17:11:32 2024 +0200
@@ -313,7 +313,7 @@
     def headrevs(self, revs=None):
         if revs is None:
             try:
-                return self.index.headrevsfiltered(self.filteredrevs)
+                return self.index.headrevs(self.filteredrevs)
             # AttributeError covers non-c-extension environments and
             # old c extensions without filter handling.
             except AttributeError: