--- a/rust/hg-core/src/revlog/index.rs Wed Jun 19 12:00:55 2024 +0200
+++ b/rust/hg-core/src/revlog/index.rs Thu Sep 12 10:08:28 2024 +0200
@@ -350,9 +350,6 @@
return Err(HgError::corrupted("unsupported revlog version"));
}
- // This is only correct because we know version is REVLOGV1.
- // In v2 we always use generaldelta, while in v0 we never use
- // generaldelta. Similar for [is_inline] (it's only used in v1).
let uses_generaldelta = header.format_flags().uses_generaldelta();
if header.format_flags().is_inline() {
@@ -424,7 +421,6 @@
assert!(self.is_inline());
{
// Wrap in a block to drop the read guard
- // TODO perf?
let mut offsets = self.offsets.write().unwrap();
if offsets.is_none() {
offsets.replace(inline_scan(&self.bytes.bytes).1);