rust/rhg/src/commands/status.rs
changeset 48540 20d0d896183e
parent 48513 47f2a82ae3e4
child 48542 35c47015b9b7
equal deleted inserted replaced
48539:b9d5ad7146a3 48540:20d0d896183e
   520     // (Maybe also check for content-modifying flags? See `revlog.size`.)
   520     // (Maybe also check for content-modifying flags? See `revlog.size`.)
   521     let filelog_entry =
   521     let filelog_entry =
   522         filelog.data_for_node(entry.node_id()?).map_err(|_| {
   522         filelog.data_for_node(entry.node_id()?).map_err(|_| {
   523             HgError::corrupted("filelog missing node from manifest")
   523             HgError::corrupted("filelog missing node from manifest")
   524         })?;
   524         })?;
   525     let contents_in_p1 = filelog_entry.data()?;
   525     let contents_in_p1 = filelog_entry.file_data()?;
   526     if contents_in_p1.len() as u64 != fs_len {
   526     if contents_in_p1.len() as u64 != fs_len {
   527         // No need to read the file contents:
   527         // No need to read the file contents:
   528         // it cannot be equal if it has a different length.
   528         // it cannot be equal if it has a different length.
   529         return Ok(true);
   529         return Ok(true);
   530     }
   530     }