Mercurial > hg
changeset 48150:d71feb05d5b6
dirstate-item: drop the `from_p2` property
It has no user anymore.
Differential Revision: https://phab.mercurial-scm.org/D11594
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Oct 2021 03:26:12 +0200 |
parents | 6ac2b417d5d7 |
children | e0b4e4f80fff |
files | mercurial/pure/parsers.py rust/hg-core/src/dirstate/entry.rs rust/hg-cpython/src/dirstate/item.rs |
diffstat | 3 files changed, 0 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/pure/parsers.py Fri Oct 01 03:24:57 2021 +0200 +++ b/mercurial/pure/parsers.py Fri Oct 01 03:26:12 2021 +0200 @@ -322,16 +322,6 @@ return self._wc_tracked and self._p1_tracked and self._p2_info @property - 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._wc_tracked and (not self._p1_tracked) and self._p2_info - - @property def removed(self): """True if the file has been removed""" return not self._wc_tracked and (self._p1_tracked or self._p2_info)
--- a/rust/hg-core/src/dirstate/entry.rs Fri Oct 01 03:24:57 2021 +0200 +++ b/rust/hg-core/src/dirstate/entry.rs Fri Oct 01 03:26:12 2021 +0200 @@ -178,11 +178,6 @@ self.flags.contains(Flags::WDIR_TRACKED) && !self.in_either_parent() } - pub fn from_p2(&self) -> bool { - self.flags.contains(Flags::WDIR_TRACKED | Flags::P2_INFO) - && !self.flags.contains(Flags::P1_TRACKED) - } - pub fn maybe_clean(&self) -> bool { if !self.flags.contains(Flags::WDIR_TRACKED) { false
--- a/rust/hg-cpython/src/dirstate/item.rs Fri Oct 01 03:24:57 2021 +0200 +++ b/rust/hg-cpython/src/dirstate/item.rs Fri Oct 01 03:26:12 2021 +0200 @@ -93,11 +93,6 @@ } @property - def from_p2(&self) -> PyResult<bool> { - Ok(self.entry(py).get().from_p2()) - } - - @property def maybe_clean(&self) -> PyResult<bool> { Ok(self.entry(py).get().maybe_clean()) }