mercurial/changegroup.py
changeset 46371 0903d6b9b1df
parent 45790 5d65e04b6a80
child 46373 711ba0f1057e
--- a/mercurial/changegroup.py	Fri Jan 15 01:30:08 2021 +0100
+++ b/mercurial/changegroup.py	Tue Jan 19 00:20:53 2021 +0100
@@ -323,7 +323,10 @@
                     cgnodes.append(node)
 
             def onchangelog(cl, node):
-                efilesset.update(cl.readfiles(node))
+                rev = cl.rev(node)
+                ctx = cl.changelogrevision(rev)
+                efilesset.update(ctx.files)
+                repo.register_changeset(rev, ctx)
 
             self.changelogheader()
             deltas = self.deltaiter()