This is an archive of the discontinued Mercurial Phabricator instance.

changegroup: pass function to build delta header into constructor
ClosedPublic

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

Details

Summary

Previously, the delta header struct format was defined on each
class and each class had a separate function for building the
delta header.

We replace both of these with an argument to init containing
a callable that can format a delta header given a revisiondelta
instance.

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.