diff -r dab7069fc2bd -r 7b9157aa752f mercurial/changegroup.py --- a/mercurial/changegroup.py Tue Aug 16 08:21:16 2016 +0000 +++ b/mercurial/changegroup.py Tue Aug 09 15:26:53 2016 +0200 @@ -985,7 +985,7 @@ common = [nullid] if not heads: heads = cl.heads() - return discovery.outgoing(cl, common, heads) + return discovery.outgoing(repo, common, heads) def getchangegroup(repo, source, heads=None, common=None, bundlecaps=None, version='01'):