equal
deleted
inserted
replaced
64 Removed, |
64 Removed, |
65 Merged, |
65 Merged, |
66 Unknown, |
66 Unknown, |
67 } |
67 } |
68 |
68 |
|
69 impl EntryState { |
|
70 pub fn is_tracked(self) -> bool { |
|
71 use EntryState::*; |
|
72 match self { |
|
73 Normal | Added | Merged => true, |
|
74 Removed | Unknown => false, |
|
75 } |
|
76 } |
|
77 } |
|
78 |
69 impl TryFrom<u8> for EntryState { |
79 impl TryFrom<u8> for EntryState { |
70 type Error = HgError; |
80 type Error = HgError; |
71 |
81 |
72 fn try_from(value: u8) -> Result<Self, Self::Error> { |
82 fn try_from(value: u8) -> Result<Self, Self::Error> { |
73 match value { |
83 match value { |