store: rename `topfiles` to `top_entries`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 16 May 2023 10:44:25 +0200
changeset 50505 32b4c2bbdb94
parent 50504 862e3a13da44
child 50506 74d8a1b03960
store: rename `topfiles` to `top_entries` The method is now returning StoreEntries let us rename the method for clarity.
hgext/remotefilelog/remotefilelogserver.py
mercurial/store.py
--- a/hgext/remotefilelog/remotefilelogserver.py	Tue May 16 10:43:36 2023 +0200
+++ b/hgext/remotefilelog/remotefilelogserver.py	Tue May 16 10:44:25 2023 +0200
@@ -187,7 +187,7 @@
                     if not state.match(entry.target_id):
                         yield entry
 
-            for x in repo.store.topfiles():
+            for x in repo.store.top_entries():
                 if state.noflatmf and x[1][:11] == b'00manifest.':
                     continue
                 yield x
--- a/mercurial/store.py	Tue May 16 10:43:36 2023 +0200
+++ b/mercurial/store.py	Tue May 16 10:44:25 2023 +0200
@@ -685,7 +685,7 @@
                     details=file_details,
                 )
 
-    def topfiles(self) -> Generator[BaseStoreEntry, None, None]:
+    def top_entries(self) -> Generator[BaseStoreEntry, None, None]:
         files = reversed(self._walk(b'', False))
 
         changelogs = collections.defaultdict(dict)
@@ -737,7 +737,7 @@
         # yield data files first
         for x in self.data_entries(matcher):
             yield x
-        for x in self.topfiles():
+        for x in self.top_entries():
             yield x
 
     def copylist(self):