sidedata: simply read added files from the `ChangingFiles` object
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 23 Sep 2020 15:15:46 +0200
changeset 45575 48c93a0b2acb
parent 45574 7543b5072e84
child 45576 f9a67afcc33b
sidedata: simply read added files from the `ChangingFiles` object
mercurial/changelog.py
--- 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: