Fully native mode hooking up, gating behind new `hg_fully_native` feature flag
This patch set introduces the hg_fully_native
feature flag, and conditionally removes all HGitaly1-level workarounds if it is activated, including:
- Blob and Tree related service methods
- Diff service methods
It passes all the functional tests for me, both in HGitaly1 and fully native mode, the latter provided the HGitaly is the head of the current blob-tree
topic (itself a work in progress). The functional tests are not currently strongly geared towards content displaying, but still need it indirectly. For instance, the tag_ci_job
test really needs the Rails application to be able to read a .gitlab-ci.yml
, hence Blob retrieval to work.
The important thing, that can justify releasing early, maybe even before the landing of blob-tree
in HGitaly, is that the HGitaly1 mode works as before - this is already something that can be validated.
Draft because we can easily add the ls-files method (commented as a TODO), which is not much.
A corresponding hg-fully-native
topic in heptapod-tests allows to select the native mode to run.
The included documentation explains how to use the feature flags.