Patchwork [5,of,7] sidedata: simply read removed files from the `ChangingFiles` object

login
register
mail settings
Submitter Pierre-Yves David
Date Sept. 23, 2020, 9:51 p.m.
Message ID <27f2fb9b84842c698f0e.1600897914@nodosa.octobus.net>
Download mbox | patch
Permalink /patch/47263/
State Accepted
Headers show

Comments

Pierre-Yves David - Sept. 23, 2020, 9:51 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1600866961 -7200
#      Wed Sep 23 15:16:01 2020 +0200
# Node ID 27f2fb9b84842c698f0e76303990cf76da095bbf
# Parent  77774597ab41503d1358db12408e76d9dbe2c5cb
# EXP-Topic new-metadata-pre
# Available At https://foss.heptapod.net/octobus/mercurial-devel/
#              hg pull https://foss.heptapod.net/octobus/mercurial-devel/ -r 27f2fb9b8484
sidedata: simply read removed files from the `ChangingFiles` object

Patch

diff --git a/mercurial/changelog.py b/mercurial/changelog.py
--- a/mercurial/changelog.py
+++ b/mercurial/changelog.py
@@ -340,9 +340,7 @@  class changelogrevision(object):
     @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: