revlogutils: for issue6528 fix, cache results for null changes
authorJoerg Sonnenberger <joerg@bec.de>
Sat, 20 Jul 2024 00:59:50 +0200
changeset 51912 82a94a956c54
parent 51911 767f47fc9d42
child 51913 576876a518e1
revlogutils: for issue6528 fix, cache results for null changes
mercurial/revlogutils/rewrite.py
--- 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