##// END OF EJS Templates
dirstate-item: drop the `merged` property...
marmoute -
r48965:c29d3126 default
parent child Browse files
Show More
@@ -314,14 +314,6 b' class DirstateItem(object):'
314 return self._wc_tracked and self._p2_info
314 return self._wc_tracked and self._p2_info
315
315
316 @property
316 @property
317 def merged(self):
318 """True if the file has been merged
319
320 Should only be set if a merge is in progress in the dirstate
321 """
322 return self._wc_tracked and self._p1_tracked and self._p2_info
323
324 @property
325 def removed(self):
317 def removed(self):
326 """True if the file has been removed"""
318 """True if the file has been removed"""
327 return not self._wc_tracked and (self._p1_tracked or self._p2_info)
319 return not self._wc_tracked and (self._p1_tracked or self._p2_info)
@@ -169,11 +169,6 b' impl DirstateEntry {'
169 self.flags.contains(Flags::WDIR_TRACKED | Flags::P2_INFO)
169 self.flags.contains(Flags::WDIR_TRACKED | Flags::P2_INFO)
170 }
170 }
171
171
172 pub fn merged(&self) -> bool {
173 self.flags
174 .contains(Flags::WDIR_TRACKED | Flags::P1_TRACKED | Flags::P2_INFO)
175 }
176
177 pub fn added(&self) -> bool {
172 pub fn added(&self) -> bool {
178 self.flags.contains(Flags::WDIR_TRACKED) && !self.in_either_parent()
173 self.flags.contains(Flags::WDIR_TRACKED) && !self.in_either_parent()
179 }
174 }
@@ -83,11 +83,6 b' py_class!(pub class DirstateItem |py| {'
83 }
83 }
84
84
85 @property
85 @property
86 def merged(&self) -> PyResult<bool> {
87 Ok(self.entry(py).get().merged())
88 }
89
90 @property
91 def removed(&self) -> PyResult<bool> {
86 def removed(&self) -> PyResult<bool> {
92 Ok(self.entry(py).get().removed())
87 Ok(self.entry(py).get().removed())
93 }
88 }
General Comments 0
You need to be logged in to leave comments. Login now