sidedata: simply read removed files from the `ChangingFiles` object
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 23 Sep 2020 15:16:01 +0200
changeset 45573 f9a67afcc33b
parent 45572 48c93a0b2acb
child 45574 4e2238ba51a4
sidedata: simply read removed files from the `ChangingFiles` object
mercurial/changelog.py
--- a/mercurial/changelog.py	Wed Sep 23 15:15:46 2020 +0200
+++ b/mercurial/changelog.py	Wed Sep 23 15:16:01 2020 +0200
@@ -340,9 +340,7 @@
     @property
     def filesremoved(self):
         if self._cpsd:
-            rawindices = self._sidedata.get(sidedatamod.SD_FILESREMOVED)
-            if not rawindices:
-                return []
+            return self.changes.removed
         else:
             rawindices = self.extra.get(b'filesremoved')
         if rawindices is None: