diff mercurial/revlogutils/rewrite.py @ 51087:df50a1592e0c

revlog: move _getsegmentforrevs on the internal object See inline documentation for details.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 24 Oct 2023 17:03:27 +0200
parents 59c6f99723b1
children 9c8df10ea6e0
line wrap: on
line diff
--- a/mercurial/revlogutils/rewrite.py	Tue Oct 17 06:02:33 2023 +0200
+++ b/mercurial/revlogutils/rewrite.py	Tue Oct 24 17:03:27 2023 +0200
@@ -126,7 +126,8 @@
         rl.opener.rename(newrl._datafile, rl._datafile)
 
     rl.clearcaches()
-    rl._loadindex()
+    chunk_cache = rl._loadindex()
+    rl._load_inner(chunk_cache)
 
 
 def v2_censor(revlog, tr, censornode, tombstone=b''):