changeset 50505:32b4c2bbdb94

store: rename `topfiles` to `top_entries` The method is now returning StoreEntries let us rename the method for clarity.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 16 May 2023 10:44:25 +0200
parents 862e3a13da44
children 74d8a1b03960
files hgext/remotefilelog/remotefilelogserver.py mercurial/store.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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):