# HG changeset patch # User Pierre-Yves David # Date 2020-09-15 08:49:50 # Node ID 9003e6524f78ff45761f110245c7d1e378a88a78 # Parent 9a6b409b8ebcfbf1c1ed61a69b3c62ae1dbf73f3 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 diff --git a/mercurial/changelog.py b/mercurial/changelog.py --- a/mercurial/changelog.py +++ b/mercurial/changelog.py @@ -305,7 +305,7 @@ class changelogrevision(object): 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 (), diff --git a/mercurial/metadata.py b/mercurial/metadata.py --- a/mercurial/metadata.py +++ b/mercurial/metadata.py @@ -430,7 +430,7 @@ def encode_files_sidedata(files): 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)