rust/hg-core/src/dirstate.rs
changeset 47106 52906934b775
parent 47093 787ff5d21bcd
child 47108 e3cebe96c0fc
equal deleted inserted replaced
47105:ba17a2ee85ac 47106:52906934b775
    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 {