This is an archive of the discontinued Mercurial Phabricator instance.

wireprotov2server: port to emitrevisions()
ClosedPublic

Authored by indygreg on Sep 24 2018, 1:15 PM.

Details

Summary

We now have a proper storage API to request data on multiple
revisions. We can drop it into wire protocol version 2 with
minimal effort.

The new API handles pretty much everything we were doing manually to
build up the delta request. So we were able to delete a lot of code.

As a bonus, wireprotov2 code is no longer accessing some low-level
storage APIs. This includes the assumption that a node has an
associated numeric revision number! This should make it drastically
simpler to implement a server that doesn't have the concept of
revision numbers.

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.Sep 24 2018, 1:15 PM
This revision was automatically updated to reflect the committed changes.