Mercurial > public > mercurial-scm > hg-stable
diff mercurial/changegroup.py @ 29815:7b9157aa752f
outgoing: pass a repo object to the constructor
We are to introduce more code constructing such object in the code base. It will
be more convenient to pass a repository object, all current users already
operate at the repository level anyway. More changes to the contructor argument
are coming in later changeset.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 09 Aug 2016 15:26:53 +0200 |
parents | 976cd337cac9 |
children | 82e8c86cdd6d |
line wrap: on
line diff
--- 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'):