getchangegroup: take an 'outgoing' object as argument (API)
There is various version of this function that differ mostly by the way they define the bundled set. The flexibility is now available in the outgoing object itself so we move the complexity into the caller themself. This will allow use to remove a good share of the similar function to obtains a changegroup in the 'changegroup.py' module. An important side effect is that we stop calling 'computeoutgoing' in 'getchangegroup'. This is fine as code that needs such argument processing is actually going through the 'exchange' module which already all this function itself.
Showing
- mercurial/changegroup.py 1 addition, 2 deletionsmercurial/changegroup.py
- mercurial/commands.py 4 additions, 3 deletionsmercurial/commands.py
- mercurial/exchange.py 3 additions, 2 deletionsmercurial/exchange.py
- tests/test-bundle2-multiple-changegroups.t 7 additions, 6 deletionstests/test-bundle2-multiple-changegroups.t
- tests/test-bundle2-remote-changegroup.t 4 additions, 4 deletionstests/test-bundle2-remote-changegroup.t
Loading
Please register or sign in to comment