Skip to content
Snippets Groups Projects
Commit 31d7839f authored by Georges Racinet's avatar Georges Racinet
Browse files

Mercurial native mode: notifying GitLab with Mercurial SHAs

This is the first part of heptapod#364

If the new `heptapod.native` config flag is set, payloads of
GitLab hooks will be made of Mercurial SHAs instead of Git
SHAs.

This will be used for native Mercurial projects, for which
obviously GitLab notification hooks must contain Mercurial SHAs,
since these are the only ones the Rails app is supposed to be
aware of.

For now, there's no facility to set this flag automatically
but it can be used for testing in developer setups (by putting
it in `hdk.hgrc`).

## Implementation details:

Instead of going over all the places were a SHA is recorded that
will end up in a hook call, we convert back to Mercurial right
before we send the hook. This is perhaps good enough, while we are
in the transitional way of operation of still converting to Git.
Things will be very different anyway when we don't do that any more.
parent 8ca8eb0b
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment