revlogutils: remember known metadata parents for issue6528
authorJoerg Sonnenberger <joerg@bec.de>
Sat, 20 Jul 2024 00:43:08 +0200
changeset 51914 3dbbb7d913a9
parent 51913 576876a518e1
child 51915 6223892833db
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.
mercurial/revlogutils/rewrite.py
--- 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()