Skip to content

Blob and Tree related service methods

Georges Racinet requested to merge topic/default/blob-tree into branch/default

This patch series closes most of the remaining gap to reach the %HGitaly2: fully native milestone, by completing the BlobService and providing the TreeEntry and GetTreeEntries methods of CommitService.

It makes all existing functional tests pass for me in HDK context with the hg_fully_native feature flag (on a Rails app at heptapod!217 (merged)). It should be noted that the functional tests will have to be extended, as they have not originally been developed to test what GitLab is providing almost for free on content converted to Git.

Care is taken to match as much as possible what Gitaly provides in similar situation, which includes some non obvious extraction from Mercurial manifests.

A further step of streamlining is tried in the Gitaly Comparison tests. If that is found to be both easier to read and to maintain, it could be generalized to other tests.

Merge request reports