changeset 28281:4ef967661751

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.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 27 Feb 2016 23:06:05 -0800
parents dc6032a1d888
children d698c11bd189
files mercurial/changegroup.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,