changeset 47106 | 52906934b775 |
parent 47093 | 787ff5d21bcd |
child 47108 | e3cebe96c0fc |
--- a/rust/hg-core/src/dirstate.rs Mon Apr 12 18:42:51 2021 +0200 +++ b/rust/hg-core/src/dirstate.rs Mon Apr 12 19:46:24 2021 +0200 @@ -66,6 +66,16 @@ Unknown, } +impl EntryState { + pub fn is_tracked(self) -> bool { + use EntryState::*; + match self { + Normal | Added | Merged => true, + Removed | Unknown => false, + } + } +} + impl TryFrom<u8> for EntryState { type Error = HgError;