This is an archive of the discontinued Mercurial Phabricator instance.

changegroup: control reordering via constructor argument
ClosedPublic

Authored by indygreg on Aug 3 2018, 5:04 PM.

Details

Summary

cg2packer.init exists just to override self._reorder. Let's
parameterize this behavior via an argument to the parent's
init.

The logic for self._reorder is kinda wonky. None is used as a
special value and the value should be None in some situations.
It is probably worth rewriting this logic to make behavior more
explicit. This will likely happen as part of future work to
control the delta generation process that I have planned.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Aug 3 2018, 5:04 PM
This revision was automatically updated to reflect the committed changes.