This is an archive of the discontinued Mercurial Phabricator instance.

changegroup: pass function to resolve delta parents into constructor
ClosedPublic

Authored by indygreg on Aug 6 2018, 3:51 PM.

Details

Summary

Previously, _deltaparent() encapsulated the logic for all 3
delta parent modes of operation. The choice of delta parent
is static for the lifetime of the packer and can be passed into
the packer as a callable. So do that.

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

indygreg created this revision.Aug 6 2018, 3:51 PM
durin42 accepted this revision.Aug 9 2018, 2:03 PM
durin42 added a subscriber: durin42.

Nice cleanup. Big improvement.

This revision is now accepted and ready to land.Aug 9 2018, 2:03 PM
This revision was automatically updated to reflect the committed changes.