rust/hg-core/src/dirstate_tree/dirstate_map.rs
changeset 48139 ab5a7fdbf75c
parent 48138 38488d488ec1
child 48192 d2f760c2c91c
equal deleted inserted replaced
48138:38488d488ec1 48139:ab5a7fdbf75c
   323     }
   323     }
   324 
   324 
   325     pub(super) fn state(
   325     pub(super) fn state(
   326         &self,
   326         &self,
   327     ) -> Result<Option<EntryState>, DirstateV2ParseError> {
   327     ) -> Result<Option<EntryState>, DirstateV2ParseError> {
   328         match self {
   328         Ok(self.entry()?.map(|e| e.state()))
   329             NodeRef::InMemory(_path, node) => {
       
   330                 Ok(node.data.as_entry().map(|entry| entry.state()))
       
   331             }
       
   332             NodeRef::OnDisk(node) => node.state(),
       
   333         }
       
   334     }
   329     }
   335 
   330 
   336     pub(super) fn cached_directory_mtime(
   331     pub(super) fn cached_directory_mtime(
   337         &self,
   332         &self,
   338     ) -> Option<&'tree on_disk::Timestamp> {
   333     ) -> Option<&'tree on_disk::Timestamp> {