diff mercurial/revlogutils/revlogv0.py @ 52896:8de68446a5bd

index: remember the generaldelta config instead of getting it from the revlog The code (especially the Rust code) was jumping in 4 dimensions to make sense of what was going on because it wrongly assumed that we needed to somehow be able to ask a generaldelta index for a non-generaldelta delta chain, which doesn't make any sense. Removing the cargo-culted/vestigial code, this is cleaner and less confusing.
author Rapha?l Gom?s <rgomes@octobus.net>
date Thu, 13 Feb 2025 13:13:05 +0100
parents 5cc8deb96b48
children
line wrap: on
line diff
--- a/mercurial/revlogutils/revlogv0.py	Thu Feb 13 13:10:11 2025 +0100
+++ b/mercurial/revlogutils/revlogv0.py	Thu Feb 13 13:13:05 2025 +0100
@@ -130,7 +130,7 @@
         return [r for r, val in enumerate(ishead) if val]
 
 
-def parse_index_v0(data, inline):
+def parse_index_v0(data, inline, uses_generaldelta):
     s = INDEX_ENTRY_V0.size
     index = []
     nodemap = nodemaputil.NodeMap({node.nullid: node.nullrev})