Mercurial > public > mercurial-scm > hg
diff mercurial/store.py @ 50502: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 | a32d739b0ffb |
line wrap: on
line diff
--- 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):