Mercurial > hg
comparison rust/hg-cpython/src/dirstate/item.rs @ 48142:fb3b41d583c2
dirstate-item: introduce a `p2_info` property that combine two others
The `merged` and `from_p2` property are always used together so we can expose a
combined property instead.
Differential Revision: https://phab.mercurial-scm.org/D11585
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Oct 2021 04:04:09 +0200 |
parents | ab5a7fdbf75c |
children | 21542d4cb568 |
comparison
equal
deleted
inserted
replaced
48141:42ab0bcb6ded | 48142:fb3b41d583c2 |
---|---|
69 @property | 69 @property |
70 def added(&self) -> PyResult<bool> { | 70 def added(&self) -> PyResult<bool> { |
71 Ok(self.entry(py).get().added()) | 71 Ok(self.entry(py).get().added()) |
72 } | 72 } |
73 | 73 |
74 | |
75 @property | |
76 def p2_info(&self) -> PyResult<bool> { | |
77 Ok(self.entry(py).get().p2_info()) | |
78 } | |
79 | |
74 @property | 80 @property |
75 def merged(&self) -> PyResult<bool> { | 81 def merged(&self) -> PyResult<bool> { |
76 Ok(self.entry(py).get().merged()) | 82 Ok(self.entry(py).get().merged()) |
77 } | 83 } |
78 | 84 |