changeset 47964:774e235d13c3

dirstate-item: implement `removed` in a simpler way We can simply use the underlying attribute. Differential Revision: https://phab.mercurial-scm.org/D11370
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 27 Aug 2021 17:12:39 +0200
parents 59eddbaa5bfb
children f94cc63df859
files mercurial/pure/parsers.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/pure/parsers.py	Fri Aug 27 17:10:26 2021 +0200
+++ b/mercurial/pure/parsers.py	Fri Aug 27 17:12:39 2021 +0200
@@ -300,7 +300,7 @@
     @property
     def removed(self):
         """True if the file has been removed"""
-        return self.v1_state() == b'r'
+        return not self._wc_tracked and (self._p1_tracked or self._p2_tracked)
 
     @property
     def merged_removed(self):