mercurial/pure/parsers.py
changeset 47517 28632eb3ca3e
parent 47516 b8ffe85e399b
child 47526 8bcae9bf9e8d
--- a/mercurial/pure/parsers.py	Sat Jul 03 20:34:09 2021 +0200
+++ b/mercurial/pure/parsers.py	Sun Jul 04 01:14:15 2021 +0200
@@ -98,9 +98,11 @@
     def from_p2(self):
         """True if the file have been fetched from p2 during the current merge
 
+        This is only True is the file is currently tracked.
+
         Should only be set if a merge is in progress in the dirstate
         """
-        return self._size == FROM_P2
+        return self._state == b'n' and self._size == FROM_P2
 
     @property
     def from_p2_removed(self):