store: rename `topfiles` to `top_entries`
The method is now returning StoreEntries let us rename the method for clarity.
--- 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):