changeset 45573:f9a67afcc33b

sidedata: simply read removed files from the `ChangingFiles` object
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 23 Sep 2020 15:16:01 +0200
parents 48c93a0b2acb
children 4e2238ba51a4
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: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: