This is an archive of the discontinued Mercurial Phabricator instance.

wireprotov2: teach changesetdata to fetch ancestors until depth
ClosedPublic

Authored by indygreg on Sep 17 2018, 5:24 PM.

Details

Summary

For shallow clone, it is useful to specify a starting node and tell
the server to send up to N ancestors from that starting point. This
enables the server to perform the DAG walk without the client having
to discover the base/stop node(s) first.

This commit implements support for said queries on the changesetdata
command.

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 17 2018, 5:24 PM
durin42 accepted this revision.Sep 18 2018, 5:37 PM
This revision is now accepted and ready to land.Sep 18 2018, 5:37 PM
indygreg updated this revision to Diff 11248.Sep 20 2018, 5:14 PM
This revision was automatically updated to reflect the committed changes.