changeset 45572:48c93a0b2acb

sidedata: simply read added files from the `ChangingFiles` object
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 23 Sep 2020 15:15:46 +0200
parents 7543b5072e84
children f9a67afcc33b
files mercurial/changelog.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changelog.py	Wed Sep 23 15:13:44 2020 +0200
+++ b/mercurial/changelog.py	Wed Sep 23 15:15:46 2020 +0200
@@ -330,9 +330,7 @@
     @property
     def filesadded(self):
         if self._cpsd:
-            rawindices = self._sidedata.get(sidedatamod.SD_FILESADDED)
-            if not rawindices:
-                return []
+            return self.changes.added
         else:
             rawindices = self.extra.get(b'filesadded')
         if rawindices is None: