changeset 51914:3dbbb7d913a9

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.
author Joerg Sonnenberger <joerg@bec.de>
date Sat, 20 Jul 2024 00:43:08 +0200
parents 576876a518e1
children 6223892833db
files mercurial/revlogutils/rewrite.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()