diff mercurial/wireproto.py @ 20931:de60ca3a390e

localrepo: move the changegroup method in changegroup module This is a gratuitous code move aimed at reducing the localrepo bloatness. The method had few callers, not enough to be kept in local repo. The peer API stay unchanged.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 01 Apr 2014 15:08:27 -0700
parents 4a987060d97e
children d3775db748a0
line wrap: on
line diff
--- a/mercurial/wireproto.py	Tue Apr 01 14:40:35 2014 -0700
+++ b/mercurial/wireproto.py	Tue Apr 01 15:08:27 2014 -0700
@@ -578,7 +578,7 @@
 @wireprotocommand('changegroup', 'roots')
 def changegroup(repo, proto, roots):
     nodes = decodelist(roots)
-    cg = repo.changegroup(nodes, 'serve')
+    cg = changegroupmod.changegroup(repo, nodes, 'serve')
     return streamres(proto.groupchunks(cg))
 
 @wireprotocommand('changegroupsubset', 'bases heads')