( )⚙ D4193 changegroup: pass clrevtolocalrev to each group

This is an archive of the discontinued Mercurial Phabricator instance.

changegroup: pass clrevtolocalrev to each group
ClosedPublic

Authored by indygreg on Aug 9 2018, 2:51 PM.

Details

Summary

clrevtolocalrev is a per-changegroup group mapping revisions to
aid with shallow clone.

Back when this functionality was implemented in an extension, this
dict was added to the packer instance so monkeypatched functions
could reference it there. Now that this code is part of core, we
can pass the dict to each consumer properly so it doesn't have to
live on the cgpacker instance. This commit does 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 9 2018, 2:51 PM
This revision was automatically updated to reflect the committed changes.