Explicitly splitting their fields packing and unpacking makes it easier to
extend the existing C implemenation to handle the new changelog format, whose
fields and offsets are not simply a superset of the revlog.
Details
- Reviewers
Alphare - Group Reviewers
hg-reviewers - Commits
- rHG92b5a2c4d637: revlog: split revlog v1 and revlog v2 handling
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
Care to elaborate? I'll review both patches soon, so I want to make sure I understand your point beforehand
Most of v1 and v2 is shared and duplicating all of that just adds complications for no gain.
It is now, but this will change shortly from what I understand. Maybe @pacien can elaborate?
Splitting the main logic seems like a big gain to be, although I really wish we could forgo this very manual type of coding, but we have to have a C variant for those core things.
This patch contains some preparatory work for the C implementation of
changelogv2 which changes the record structure, not simply extending
the existing formats.
The different format versions being independently defined, I think it
makes more sense to handle them independently explicitly, avoiding
tangling versions together to factor what they happen to have in common.
The benefit here is added clarity by splitting the legacy, current and
future (experimental) formats, limiting the risk of breakage of the ones
already frozen.
This patch contains some preparatory work for the C implementation of
changelogv2 which changes the record structure, not simply extending
the existing formats.
The different format versions being independently defined, I think it
makes more sense to handle them independently explicitly, avoiding
tangling versions together to factor what they happen to have in common.
The benefit here is added clarity by splitting the legacy, current and
future (experimental) formats, limiting the risk of breakage of the ones
already frozen.
Splitting both implementations is a good idea IMO since they'll be quite different pretty soon. The change looks good by itself.