Mercurial > hg
comparison mercurial/changelog.py @ 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 | 147fb889278b |
children | 053c9014fd39 |
comparison
equal
deleted
inserted
replaced
45634:9a6b409b8ebc | 45635:9003e6524f78 |
---|---|
303 @property | 303 @property |
304 def changes(self): | 304 def changes(self): |
305 if self._changes is not None: | 305 if self._changes is not None: |
306 return self._changes | 306 return self._changes |
307 if self._cpsd: | 307 if self._cpsd: |
308 changes = metadata.decode_files_sidedata(self, self._sidedata) | 308 changes = metadata.decode_files_sidedata(self._sidedata) |
309 else: | 309 else: |
310 changes = metadata.ChangingFiles( | 310 changes = metadata.ChangingFiles( |
311 touched=self.files or (), | 311 touched=self.files or (), |
312 added=self.filesadded or (), | 312 added=self.filesadded or (), |
313 removed=self.filesremoved or (), | 313 removed=self.filesremoved or (), |