This is an archive of the discontinued Mercurial Phabricator instance.

changegroup: replace changegroupsubset with makechangegroup
ClosedPublic

Authored by durham on Sep 10 2017, 10:06 PM.

Details

Summary

As part of getting rid of all the permutations of changegroup creation, let's
remove changegroupsubset and call makechangegroup instead. This moves the
responsibility of creating the outgoing set to the caller, but that seems like a
relatively reasonable unit of functionality for the caller to have to care about
(i.e. what commits should be bundled).

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durham created this revision.Sep 10 2017, 10:06 PM
indygreg accepted this revision.Sep 11 2017, 6:20 PM
indygreg added a subscriber: indygreg.

I agree that passing in the outgoing data structure makes sense. Discovery should be done before changegroup APIs are called.

This revision is now accepted and ready to land.Sep 11 2017, 6:20 PM
This revision was automatically updated to reflect the committed changes.