Mercurial > public > mercurial-scm > hg-stable
diff mercurial/changegroup.py @ 29817:82e8c86cdd6d
outgoing: add a 'missingroots' argument
This argument can be used instead of 'commonheads' to determine the 'outgoing'
set. We remove the outgoingbetween function as its role can now be handled by
'outgoing' itself.
I've thought of using an external function instead of making the constructor
more complicated. However, there is low hanging fruit to improve the current
code flow by storing some side products of the processing of 'missingroots'. So
in my opinion it make senses to add all this to the class.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 09 Aug 2016 22:31:38 +0200 |
parents | 7b9157aa752f |
children | d4e026341e16 |
line wrap: on
line diff
--- a/mercurial/changegroup.py Tue Aug 09 15:55:44 2016 +0200 +++ b/mercurial/changegroup.py Tue Aug 09 22:31:38 2016 +0200 @@ -942,7 +942,7 @@ Another wrinkle is doing the reverse, figuring out which changeset in the changegroup a particular filenode or manifestnode belongs to. """ - outgoing = discovery.outgoingbetween(repo, roots, heads) + outgoing = discovery.outgoing(repo, missingroots=roots, missingheads=heads) bundler = getbundler(version, repo) return getsubset(repo, outgoing, bundler, source)