equal
deleted
inserted
replaced
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 } |