# HG changeset patch # User Joerg Sonnenberger # Date 2024-07-19 22:43:08 # Node ID 3dbbb7d913a9e7f75ec7947b861beb7442739e19 # Parent 576876a518e1c342007ff8a8392094f030ab84d9 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. diff --git a/mercurial/revlogutils/rewrite.py b/mercurial/revlogutils/rewrite.py --- a/mercurial/revlogutils/rewrite.py +++ b/mercurial/revlogutils/rewrite.py @@ -653,6 +653,7 @@ def _is_revision_affected_fast_inner( p1, p2 = parent_revs() if p1 == nullrev or p2 != nullrev: + metadata_cache[filerev] = True return False delta_parent = delta_base()