comparison rust/hg-core/src/dirstate/entry.rs @ 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 8f88307f8e07
comparison
equal deleted inserted replaced
48149:6ac2b417d5d7 48150:d71feb05d5b6
176 176
177 pub fn added(&self) -> bool { 177 pub fn added(&self) -> bool {
178 self.flags.contains(Flags::WDIR_TRACKED) && !self.in_either_parent() 178 self.flags.contains(Flags::WDIR_TRACKED) && !self.in_either_parent()
179 } 179 }
180 180
181 pub fn from_p2(&self) -> bool {
182 self.flags.contains(Flags::WDIR_TRACKED | Flags::P2_INFO)
183 && !self.flags.contains(Flags::P1_TRACKED)
184 }
185
186 pub fn maybe_clean(&self) -> bool { 181 pub fn maybe_clean(&self) -> bool {
187 if !self.flags.contains(Flags::WDIR_TRACKED) { 182 if !self.flags.contains(Flags::WDIR_TRACKED) {
188 false 183 false
189 } else if !self.flags.contains(Flags::P1_TRACKED) { 184 } else if !self.flags.contains(Flags::P1_TRACKED) {
190 false 185 false