changeset 45635:9003e6524f78

changing-files: drop the now useless changelogrevision argument Since all filename are now included in the sidedata block, we no longer need to decode the `files` from the revision. Differential Revision: https://phab.mercurial-scm.org/D9091
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 15 Sep 2020 10:49:50 +0200
parents 9a6b409b8ebc
children 053c9014fd39
files mercurial/changelog.py mercurial/metadata.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changelog.py	Tue Sep 15 10:55:17 2020 +0200
+++ b/mercurial/changelog.py	Tue Sep 15 10:49:50 2020 +0200
@@ -305,7 +305,7 @@
         if self._changes is not None:
             return self._changes
         if self._cpsd:
-            changes = metadata.decode_files_sidedata(self, self._sidedata)
+            changes = metadata.decode_files_sidedata(self._sidedata)
         else:
             changes = metadata.ChangingFiles(
                 touched=self.files or (),
--- a/mercurial/metadata.py	Tue Sep 15 10:55:17 2020 +0200
+++ b/mercurial/metadata.py	Tue Sep 15 10:49:50 2020 +0200
@@ -430,7 +430,7 @@
     return {sidedatamod.SD_FILES: b''.join(chunks)}
 
 
-def decode_files_sidedata(changelogrevision, sidedata):
+def decode_files_sidedata(sidedata):
     md = ChangingFiles()
     raw = sidedata.get(sidedatamod.SD_FILES)