revlogutils: remember known metadata parents for
issue6528
In the cases where the parent revs tell us for sure that the parent has
metadata, remember this fact to avoid content recomputations later.
--- a/mercurial/revlogutils/rewrite.py Sat Jul 20 00:44:59 2024 +0200
+++ b/mercurial/revlogutils/rewrite.py Sat Jul 20 00:43:08 2024 +0200
@@ -653,6 +653,7 @@
p1, p2 = parent_revs()
if p1 == nullrev or p2 != nullrev:
+ metadata_cache[filerev] = True
return False
delta_parent = delta_base()