diff -r f85dfde1731a -r f7d41b85bbf6 mercurial/wireproto.py --- a/mercurial/wireproto.py Sun Sep 10 18:39:02 2017 -0700 +++ b/mercurial/wireproto.py Sun Sep 10 18:43:59 2017 -0700 @@ -21,6 +21,7 @@ from . import ( bundle2, changegroup as changegroupmod, + discovery, encoding, error, exchange, @@ -801,7 +802,9 @@ def changegroupsubset(repo, proto, bases, heads): bases = decodelist(bases) heads = decodelist(heads) - cg = changegroupmod.changegroupsubset(repo, bases, heads, 'serve') + outgoing = discovery.outgoing(repo, missingroots=bases, + missingheads=heads) + cg = changegroupmod.makechangegroup(repo, outgoing, '01', 'serve') return streamres(reader=cg, v1compressible=True) @wireprotocommand('debugwireargs', 'one two *')