changeset 51912:82a94a956c54

revlogutils: for issue6528 fix, cache results for null changes
author Joerg Sonnenberger <joerg@bec.de>
date Sat, 20 Jul 2024 00:59:50 +0200
parents 767f47fc9d42
children 576876a518e1
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:41:37 2024 +0200
+++ b/mercurial/revlogutils/rewrite.py	Sat Jul 20 00:59:50 2024 +0200
@@ -668,6 +668,7 @@
     chunk = delta()
     if not len(chunk):
         # No diff for this revision
+        metadata_cache[filerev] = parent_has_metadata
         return parent_has_metadata
 
     header_length = 12