comparison mercurial/pure/parsers.py @ 48062:46d1b75648f4

dirstate: drop unused condition in `from_p2` This conditional was added (by me) tentatively because "it seemed more correct", but it is not used anywhere yet, and it is missing from the C and the Rust implementation. So it seems more consistent to drop it for now. This effectively backout f94cc63df859c Differential Revision: https://phab.mercurial-scm.org/D11510
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 28 Sep 2021 18:29:57 +0200
parents 060cd909439f
children 2943955304b3
comparison
equal deleted inserted replaced
48061:060cd909439f 48062:46d1b75648f4
334 334
335 Should only be set if a merge is in progress in the dirstate 335 Should only be set if a merge is in progress in the dirstate
336 """ 336 """
337 if not self._wc_tracked: 337 if not self._wc_tracked:
338 return False 338 return False
339 return self._clean_p2 or (not self._p1_tracked and self._p2_tracked) 339 return self._clean_p2
340 340
341 @property 341 @property
342 def from_p2_removed(self): 342 def from_p2_removed(self):
343 """True if the file has been removed, but was "from_p2" initially 343 """True if the file has been removed, but was "from_p2" initially
344 344