Mercurial > hg
changeset 51852:06549ab4281b
rust-inner-revlog: drop some outdated comment
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 12 Sep 2024 10:08:28 +0200 |
parents | 0dbf6a5ccf5f |
children | 4777378fc3bf |
files | rust/hg-core/src/revlog/index.rs |
diffstat | 1 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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);