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.
--- 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,