mercurial/wireproto.py
changeset 34100 1632999d4bed
parent 34097 f7d41b85bbf6
child 34322 10e162bb9bf5
--- a/mercurial/wireproto.py	Sun Sep 10 18:47:39 2017 -0700
+++ b/mercurial/wireproto.py	Sun Sep 10 18:48:42 2017 -0700
@@ -795,7 +795,9 @@
 @wireprotocommand('changegroup', 'roots')
 def changegroup(repo, proto, roots):
     nodes = decodelist(roots)
-    cg = changegroupmod.changegroup(repo, nodes, 'serve')
+    outgoing = discovery.outgoing(repo, missingroots=nodes,
+                                  missingheads=repo.heads())
+    cg = changegroupmod.makechangegroup(repo, outgoing, '01', 'serve')
     return streamres(reader=cg, v1compressible=True)
 
 @wireprotocommand('changegroupsubset', 'bases heads')