changegroup: use changelog.readfiles
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 27 Feb 2016 23:06:05 -0800
changeset 28281 4ef967661751
parent 28280 dc6032a1d888
child 28282 d698c11bd189
changegroup: use changelog.readfiles We have a dedicated function to get just the list of files in a changelog entry. Use it. This will presumably speed up changegroup application since we're no longer decoding the entire changelog entry. But I didn't measure the impact.
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Sat Feb 27 18:02:12 2016 +0100
+++ b/mercurial/changegroup.py	Sat Feb 27 23:06:05 2016 -0800
@@ -363,7 +363,7 @@
 
                 efiles = set()
                 def onchangelog(cl, node):
-                    efiles.update(cl.read(node)[3])
+                    efiles.update(cl.readfiles(node))
 
                 self.changelogheader()
                 srccontent = cl.addgroup(self, csmap, trp,